Open iDevPro opened 3 years ago
Low level...I don't think this is something we can do.
I doubt that WebImage
can not show animation on WidgetKit. Because using WidgetKit, every Runloop/Timer, which drive the animation, will be stopped between iOS 14's Widget timeline update.
推测和swiftUI视图生命周期关联,可以试试在onDisappear不进行取消操作,同时关闭该插件的cancelOnDisappear
这个问题解决了吗?iOS 14, WidgetKit中怎么去显示动图啊,大佬们
Latest SDWebImage from pod
WebImage(url: imageUrl)
in preview work like a charm, butDoesn't work in preview, but work in simulator :))