Reading time: 1 min
This quick recipe shows how to support nested NavigationLinks and allow the user to move back programatically. As always, SwiftUI throws a curveball even on trivial tasks such as this.
SwiftUI Segues
Reading time: 6 min
This recipe shows how to add easy-to-use segues to your SwiftUI navigation. They allow for presenting views using common UIKIt Segue types - push, modal and popover.
Update SwiftUI Navigation Bar on Scroll
Reading time: 1 min
This recipe shows how to update navigation bar when the content underneath it scrolls.
Reading time: 1 min
This quick recipe shows how to scroll a SwiftUI ScrollView programatically when the scrolling trigger is not wrapped in a ScrollViewReader. E.g, the image below shows scrolling triggered from navigation bar buttons.
SwiftUI ScrollView Scroll Offset
Reading time: 2 min
This recipe shows how to get current scroll offset of a SwiftUI ScrollView. The necessary functionality is wrapped in a new component, ObservableScrollView, which works exactly the same as ScrollView
does, but also exposes its current scroll offset in a binding.