Capture Extension Icon

Hello,

I seem to be having an issue assigning my Capture Extension an icon. It works fine using a system icon, for example:

Image(systemName: "star")

But it fails when I use my custom icon, such as:

Image(uiImage: UIImage(named: "widget-icon")!)

The "widget-icon" is located in both my Assets collection and the widget folder for good measure, and yet, my Widget always has a "?" icon.

I am able to use "widget-icon" just fine for other Lock Screen widgets, but it is not working for the Camera Extension Widget.

Any thoughts?

Thank you for your help!

Answered by DTS Engineer in 804851022

Hello @edee1337,

Control widgets do not support arbitrary images, the image must be a symbol image.

Take a look at Creating custom symbol images for your app to see how you can create your own symbol image to use with your control widget!

Best regards,

Greg

Accepted Answer

Hello @edee1337,

Control widgets do not support arbitrary images, the image must be a symbol image.

Take a look at Creating custom symbol images for your app to see how you can create your own symbol image to use with your control widget!

Best regards,

Greg

Thank you Greg! Quick test confirmed this solved it 🥳

Capture Extension Icon
 
 
Q