I've tried to set my action extension icon by following tutorials available online. The steps I've followed:
Assets.xcassets
is in the copy bundle resources list of the extensionBut it only renders a grey block:
What could be wrong?
For Action Extension Icon, any color data in the image itself is ignored. as stated in Apple Docs
The alpha channel of the image is used as a mask to generate the final image that is presented to the user. Any color data in the image itself is ignored.
To fix this issue, follow these 4 step
added a new Asset Catalog set to my extension by right click -> New File -> under IOS choose “Resource” -> Asset Catalog
In that Asset Catalog, I added an new AppIcon, using the + menu at the bottom. Note the name is: AppIcon, then added your removed alpha icons to the new AppIcon.