Post

Replies

Boosts

Views

Activity

Comment on How to play gif in widget?
Thank you for your reply. I tried Timer and CADisplayLink, but they are all "invalid" in the widget. Image can be rotated by _clockHandRotationEffect(.secondHand, in: .current, anchor: .center), but it has been disabled in Xcode 14. For the method you mentioned, Image (uiImage: UIImage (contentsOfFile: "animated. gif")) can only display the first frame.
Topic: App & System Services SubTopic: General Tags:
Dec ’22
Comment on How to play gif in widget?
Thank you for your reply. I tried Timer and CADisplayLink, but they are all "invalid" in the widget. Image can be rotated by _clockHandRotationEffect(.secondHand, in: .current, anchor: .center), but it has been disabled in Xcode 14. For the method you mentioned, Image (uiImage: UIImage (contentsOfFile: "animated. gif")) can only display the first frame.
Topic: App & System Services SubTopic: General Tags:
Nov ’22
Comment on How to play gif in widget?
Thank you for your reply. I tried Timer and CADisplayLink, but they are all "invalid" in the widget. Image can be rotated by _clockHandRotationEffect(.secondHand, in: .current, anchor: .center), but it has been disabled in Xcode 14. For the method you mentioned, Image (uiImage: UIImage (contentsOfFile: "animated. gif")) can only display the first frame.
Topic: App & System Services SubTopic: General Tags:
Nov ’22
Comment on How to play gif in widget?
Thank you for your reply. I tried Timer and CADisplayLink, but they are all "invalid" in the widget. Image can be rotated by _clockHandRotationEffect(.secondHand, in: .current, anchor: .center), but it has been disabled in Xcode 14. For the method you mentioned, Image (uiImage: UIImage (contentsOfFile: "animated. gif")) can only display the first frame.
Topic: App & System Services SubTopic: General Tags:
Nov ’22
Comment on How to play gif in widget?
Thank you for your reply. I tried Timer and CADisplayLink, but they are all "invalid" in the widget. Image can be rotated by clockHandRotationEffect(.secondHand, in: .current, anchor: .center), but it has been disabled in Xcode 14. For the method you mentioned, Image (uiImage: UIImage (contentsOfFile: "animated. gif")) can only display the first frame.
Topic: App & System Services SubTopic: General Tags:
Nov ’22
Comment on How to play gif in widget?
Thank you for your reply. I tried Timer and CADisplayLink, but they are all "invalid" in the widget. Image can be rotated by _clockHandRotationEffect(.secondHand, in: .current, anchor: .center), but it has been disabled in Xcode 14. For the method you mentioned, Image (uiImage: UIImage (contentsOfFile: "animated. gif")) can only display the first frame.
Topic: App & System Services SubTopic: General Tags:
Nov ’22
Comment on How to play gif in widget?
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:
Nov ’22
Comment on Setting rounded corners via CAShapeLayer.path looks problematic
Thank you
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Feb ’25
Comment on How to play gif in widget?
Thanks for your reply. The solution you mentioned cannot be used in widgets. I recently saw a solution that said it can be implemented. https://github.com/wyqACoffer/DynamicWidget
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’24
Comment on How to play gif in widget?
没有找到
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’23
Comment on How to play gif in widget?
No
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’22
Comment on How to play gif in widget?
Thank you for your reply. I tried Timer and CADisplayLink, but they are all "invalid" in the widget. Image can be rotated by _clockHandRotationEffect(.secondHand, in: .current, anchor: .center), but it has been disabled in Xcode 14. For the method you mentioned, Image (uiImage: UIImage (contentsOfFile: "animated. gif")) can only display the first frame.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Dec ’22
Comment on How to play gif in widget?
Thank you for your reply. I tried Timer and CADisplayLink, but they are all "invalid" in the widget.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on How to play gif in widget?
Thank you for your reply. I tried Timer and CADisplayLink, but they are all "invalid" in the widget. Image can be rotated by _clockHandRotationEffect(.secondHand, in: .current, anchor: .center), but it has been disabled in Xcode 14. For the method you mentioned, Image (uiImage: UIImage (contentsOfFile: "animated. gif")) can only display the first frame.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on How to play gif in widget?
Thank you for your reply. I tried Timer and CADisplayLink, but they are all "invalid" in the widget. Image can be rotated by _clockHandRotationEffect(.secondHand, in: .current, anchor: .center), but it has been disabled in Xcode 14. For the method you mentioned, Image (uiImage: UIImage (contentsOfFile: "animated. gif")) can only display the first frame.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on How to play gif in widget?
Thank you for your reply. I tried Timer and CADisplayLink, but they are all "invalid" in the widget. Image can be rotated by _clockHandRotationEffect(.secondHand, in: .current, anchor: .center), but it has been disabled in Xcode 14. For the method you mentioned, Image (uiImage: UIImage (contentsOfFile: "animated. gif")) can only display the first frame.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on How to play gif in widget?
Thank you for your reply. I tried Timer and CADisplayLink, but they are all "invalid" in the widget. Image can be rotated by clockHandRotationEffect(.secondHand, in: .current, anchor: .center), but it has been disabled in Xcode 14. For the method you mentioned, Image (uiImage: UIImage (contentsOfFile: "animated. gif")) can only display the first frame.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on How to play gif in widget?
Thank you for your reply. I tried Timer and CADisplayLink, but they are all "invalid" in the widget. Image can be rotated by _clockHandRotationEffect(.secondHand, in: .current, anchor: .center), but it has been disabled in Xcode 14. For the method you mentioned, Image (uiImage: UIImage (contentsOfFile: "animated. gif")) can only display the first frame.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on How to play gif in widget?
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:
Replies
Boosts
Views
Activity
Nov ’22