mastodon.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
The original server operated by the Mastodon gGmbH non-profit

Administered by:

Server stats:

352K
active users

animation is hard. Harder than it should be.

I appreciate folks who have put out resources (blogs, tutorials, sample code, etc) to help others grasp at the capabilities of the animation system. I've seen some truly incredible work. The talks on the Animation system were also enlightening.

But it still feels really hard to go from a vision or idea to an implementation. In my opinion, *we need better debugging and introspection tools*. There's too much guess-and-check right now.

I'm coming from a decent background with other UI and animation systems (CSS, Flash/ActionScript, etc). I imagine it's much harder for someone who doesn't have the same conceptual foundation.

Ankur Oberoi

Some resources worth sharing:

* Javier's amazing blog: swiftui-lab.com/
* Swift Talk's SwiftUI series: talk.objc.io/collections/swift
* Lectures 7 & 8 from Stanford CS193P youtube.com/watch?v=PoeaUMGAx6c
* Explore SwiftUI animation (WWDC23) developer.apple.com/wwdc23/101

Would love to hear from other developers about their experience and what resources they found helpful!

The SwiftUI LabThe SwiftUI LabWhen the documentation is missing, we experiment.

@aoberoi @StewartLynch had high praise for the book “SwiftUI Animations Mastery” by Big Mountain Studio in this video: youtu.be/xGNR7tvDE0Q (the book is linked from the video description).

@sids @StewartLynch @sandropennisi Thanks for the links, I'll check some of these out today!

@aoberoi lots of trial and error I'm afraid. Javier's blog is still the best resource and one I keep coming back to. There does seem to be some missing features (easy path following, chaining for example) that are missing

@stuart I think chaining, if I understand what you mean, is addressed in the 2023 updates with phaseAnimator() APIs. That's covered in the first half of this session: developer.apple.com/wwdc23/101. I haven't seen anything regarding path following yet, but maybe that's something that could be accomplished with the .keyframeAnimator() APIs.

Apple DeveloperWind your way through advanced animations in SwiftUI - WWDC23 - Videos - Apple DeveloperDiscover how you can take animation to the next level with the latest updates to SwiftUI. Join us as we wind our way through animation...

@aoberoi yes, that combined with the keyframe animation modifiers look to be really powerful in controlling animations. Thanks, I’d not got around to the animation videos this year, but there is some great information in there