r/iOSProgramming • u/tedmirra • 8d ago
Article I am creating animated widgets.
Hey all!
Iโm building Jubs, an app with animated iPhone widgets.
I want them to feel alive, and a big part of that is getting the little details right.
I draw everything by hand first, then write simulations to figure out how it should move.
For this snow globe, that meant working out how snow falls and how the curved glass bends what you see through it.
Let me know your thoughts, please.
Thank you
Edit:
I've released the app now: https://apps.apple.com/us/app/jubs-animated-widgets/id6821070839
Thank you
11
Upvotes


5
u/purposeful_pineapple 8d ago
Why does the box go all around the tree, but the candy cane just bobs to the side without ever crossing the front?
2
u/jaymakesapps 8d ago
Simulating how curved glass bends the snow for a home screen widget is a beautifully unhinged amount of effort. Good timing on the snow globe though, December basically sells it for you.
2
u/definitelybestguy 8d ago
I can see you've tried this on device, but curious how long you've run it for? I suspect this kind of refresh rate will consume your widget's day's refresh budget in minutes, and then it will end up sitting static the rest of the time... Would love to be wrong about this as I've had a few ideas which would benefit from even this 1 fps refresh rate animation, but I didn't think it was possible.
2
u/hamsterjedi Swift 8d ago
While the idea is great, it looks laggy as hell? ๐ซ
2
u/wwwery-good-apps 8d ago
they are looking cool, how do you render them?
2
u/mrdzyn 5d ago
The curved-glass refraction on the snow globe is a really nice touch, and timing a winter widget app for December makes a lot of sense. โCurious how you're driving the motion within WidgetKit's timeline limits โ are you stepping through pre-rendered timeline entries with contentTransition / SwiftUI transitions, or using another trick? Also worth checking how it holds up in StandBy mode on a charger, since widgets get scaled up there and any subtle clipping or frame-rate stutter shows up immediately.
2
u/mauricehq 2d ago
he snow globe is a great December pick. I made a widget design that slowly thickens the longer it's been, and having the look change over time instead of just the number is my favorite kind of widget to build.
1
u/nayajunimesh 2d ago
Can I ask how you got the snow animating in the widget? Did you pre-render it as a loop?
2
u/[deleted] 8d ago
[removed] โ view removed comment
2
u/[deleted] 8d ago
[removed] โ view removed comment
1
u/[deleted] 6d ago
[removed] โ view removed comment