SwiftUI Paging with TabView
Reading time: 1 min
This recipe shows how to implement a Pager View using a TabView in SwiftUI. This is an awesome addition in iOS 14.0, allowing you to trivially create a swipeable pager.
The end result looks like this:
We already have a recipe for Pager / Swiper view in SwiftUI that also works on iOS 1...
Top Tabs in SwiftUI
Reading time: 1 min
This tutorial shows how to add Android-like top tabs in SwiftUI. The result will look something like this:
Without much ado, here's the code for the component:
struct Tabs: View {
@Binding var tabs: [String] // The tab titles
@Binding var selection: Int // Currently selected...