Sunday, July 27, 2025
HomeiOS Developmentios - Non-tinted picture in issues utilizing WidgetKit

ios – Non-tinted picture in issues utilizing WidgetKit


I’ve a watchOS app the place a consumer can choose an image. I’d like the image to be displayed in a complication.
I’m utilizing WidgetKit, and I discovered that for some watch faces (rendering mode = accented), the picture will get tinted. As an alternative of the image, the consumer sees solely a coloured field.

It seems that utilizing the previous framework, ClockKit, it was potential to show a picture that will get barely coloured with the tint shade on tinted watch faces. I consider that is to make sure backward compatibility of previous issues.

My query is: can I do the identical utilizing WidgetKit? I attempted utilizing the widgetAccentable() modifier, nevertheless it doesn’t work.

Here is an instance of what I imply. Within the center complication, as a substitute of the pink sq., I might wish to show the consumer image.

enter image description here

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments