Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Animation in iOS 14 widget

I can't find solution to implement kind of ProgressBar in Widget. I see, that Text component should be changed if has type .timer for example. I see default widget Clock, with nice animation of moving arrow. But am I able to implement custom animation in widget?

like image 392
Konstantin.Efimenko Avatar asked Oct 23 '20 14:10

Konstantin.Efimenko


People also ask

Can you have a GIF as a widget?

Put GIF widget on android: GifWidget Press and hold on an open space on your home screen to bring up the page settings. Find and open Widgets or something similar (adding widgets may vary depending on your device or the launcher you are using). Scroll till you find GifWidget, tap on it.

How do you customize the widgets on iOS 14?

Touch and hold the Lock Screen until the Customize button appears, then tap Customize. Tap the box above or below the time to see the widgets that you can add to your Lock Screen. Tap or drag the widgets that you want to add. Tap Done.


1 Answers

According to a Frameworks Engineer on Developer Apple Forum:

Animations and pan/zoom gesture do not work in widgets built with WidgetKits. Checkout https://developer.apple.com/videos/play/wwdc2020/10028/, where what works and doesn't.

Throughout the WWDC20 Meet WidgetKit video mentioned above, Apple stresses that Widgets are not mini-apps, so they don't support gesture based views (like scroll views) or animations. Widgets are meant to only have glanceable information. From WWDC20 Meet WidgetKit Video Transcript:

These widgets are not mini-apps. We do not support scrolling within the widget, interactive elements like switches and other system controls, nor videos or animated images.

like image 167
rohanphadte Avatar answered Oct 18 '22 01:10

rohanphadte