swiftui – How do you animate a lock display widget on iOS 16?



In iOS 16, Lock display widgets will let you add an Picture to the WidgetView, like in accessoryCircular.

How do you animate this Picture? Loading the Picture from an animated UIImage with frames simply shows the primary body.

Am I lacking a startAnimating name, like it’s important to do with WKInterfaceObjects? Is there some extra step or worth to set to get an Picture inside a SwiftUI WidgetView to start animating, or biking via frames?

Examples of apps which have achieved this are https://www.livelywidget.com or Pixel Pal, so I do know it is potential, however after I seek for APIs to perform this, all that comes up are apps.



Please enter your comment!
Please enter your name here