Pause and Resume Animation in SwiftUI
Reading time: 4 min
This recipe shows how to pause and resume animations in SwiftUI.
SwiftUI Marquee
Reading time: 2 min
This recipe shows how to implement a marquee - self-scrolling content that goes across the screen - in SwiftUI. You'll be able to control the speed and direction of the animation, as well as if it reverses or resets once it ends.
Reading time: 2 min
This recipe shows how to track SwiftUI animation progress and completion via callbacks. For an animated value (offset, opacity, etc.), get its current value as the animation progresses and then get notified when the animation is completed.
Side menu in SwiftUI (updated 05/21)
Reading time: 4 min
This tutorial shows how to create a side menu (or navigation drawer, as it's known on Android), in SwiftUI. It's also a good showcase of using GeometryReader
to offset views and DragGesture
to detect user gestures.