hide indicators for TabView when set vertically

37 views Asked by At

I am trying to hide the index indicators(dots) for a vertical scroll TabView. This seems to work for a horizontal TabView, although it does show the index indicators when the view first loads. Maybe this is expected to indicate to the user that the view is in fact a TabView. For the vertical TabView it always shows the indicators. This seems to only work for horizontal.

My code is below.

   var body: some View {
        TabView(selection: $selectedTab)  {
            ViewOne()
                .tag(VerticalTab.viewOne)
            ViewTwo()
                .tag(VerticalTab.viewTwo)
        }
        .tabViewStyle(.verticalPage)
        .tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))
    }
0

There are 0 answers