Reputation: 783
Is there a way to create tabs in iOS similar to those on Android. That is, moving between them with swipes and as though they are panes beside one another?
Mike
Upvotes: 4
Views: 136
Reputation: 34401
If you use SwiftUI you can try TabView
(is a kind of UIPageViewController
) with tabViewStyle(.page)
TabView {
Text("A")
Text("B")
Text("C")
}
.tabViewStyle(.page)
Upvotes: 0
Reputation: 32681
Simply use a UIScrollView
with pagingEnabled=YES
.
See the PageControl sample code in the Apple Documentation that demonstrates it all.
Upvotes: 1