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.

Folder icon change in FileProvider mount in Finder
 
 
Q