Home > AI > IOS > SwiftUI >

indexViewStyle(_:)

struct ContentView: View {
    
    var body: some View {
        TabView {
            Text("Hi")
            Text("Hello")
            Text("Welcome")
        }
        .tabViewStyle(PageTabViewStyle())
        .indexViewStyle(PageIndexViewStyle(backgroundDisplayMode: .always))
        
    }
}

Leave a Reply