Paging Between Views with SwiftUI

Episode #441 | 35 minutes | published on May 29, 2020 | Uses Xcode-11.4.1, Swift-5.2
Subscribers Only
Paging between views is something that is not yet provided by SwiftUI, but we can lean on UIViewControllerRepresentable to borrow this behavior from UIKit. Doing so we'll learn about the Coordinator design for handling events via delegates and datasources. We'll also see some of the rough edges you might run into when using this technique.

In this episode I mention that paging is not built-in to SwiftUI (which was true at the time of recording). Luckily, iOS 14 brings PageTabViewStyle which you can use with a TabView to get a similar effect to what we have in this episode.

blog comments powered by Disqus