Folder icon change in FileProvider mount in Finder

We are creating a Replicated FileProvider based application, where we need to change folder icons for root level folders. I tried below two approaches.

This using NSFileProviderDecorations + Custom UTType, this changed the UI as shown:

This using Custom UTType, this had no UI change:

How can we change the default folder icon, to our custom icon?

Just to be clear, do you mean to change the icon of the file provider name in the sidebar, the "Adobe Drive" here, as shown in your screenshot?

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

No, I need to change the icons of folders (like ABC123, DEF etc) inside it.

You can easily add an emboss icon as decoration like this:

Decorations: com.cihub.cihubdrive.CIHubDriveFileProvider.aemFolder: "aem Folder"

Then add your emboss icon in Info.plist

Folder icon change in FileProvider mount in Finder
 
 
Q