MikeCoverUps
MikeCoverUps

Reputation: 783

Ios equivalent of android tabbed lists

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

Answers (2)

yoAlex5
yoAlex5

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

AliSoftware
AliSoftware

Reputation: 32681

Simply use a UIScrollView with pagingEnabled=YES.

See the PageControl sample code in the Apple Documentation that demonstrates it all.

Upvotes: 1

Related Questions