Is there any way to make a paged ScrollView in SwiftUI?

前端 未结 7 1328
轻奢々
轻奢々 2021-02-03 15:02

I\'ve been looking through the docs with each beta but haven\'t seen a way to make a traditional paged ScrollView. I\'m not familiar with AppKit so I am wondering if this doesn\

7条回答
  •  情话喂你
    2021-02-03 15:15

    You can now use a TabView and set the .tabViewStyle to PageTabViewStyle()

    TabView {
                View1()
                View2()
                View3()
            }
            .tabViewStyle(PageTabViewStyle())
    

提交回复
热议问题