Thank you for your reply. I used Timer and CADisplayLink, but in the widget, these timers are "invalidated". The method you mentioned can only display the first frame. Image(uiImage: UIImage(named: "animated.gif")!)
Through the bridge of UIViewRepresentable, WKWebView or UIImageView can load gif, but the view after handover will not be displayed.
This method ._clockHandRotationEffect(.secondHand, in: .current, anchor: .center) can rotate images, but it has been disabled in Xcode 14.
Topic:
App & System Services
SubTopic:
General
Tags: