Bounce Animation in SwiftUI

Episode #446 | 18 minutes | published on July 2, 2020 | Uses Xcode-12-beta1, iOS-14.0-beta1
Subscribers Only
Simple animations in SwiftUI are refreshingly easy. However, some animations are deceptively tricky, as we don't have access to completion handlers. Animation is entirely state-based, so if we have an animation where an item needs to move and return to its original state, we need to take a different approach. In this episode we will model a bounce animation using a simple sine function, feeding in the time value t using SwiftUI's linear animation interpolation.

Nothing yet...

blog comments powered by Disqus