SwiftUI TabView with page style doesn't present dots on watchOS

Hi,

I have created a TabView with TabViewStyle.page. Is there a way to present the dots on watchOS? I have written some demo watchOS project:

import SwiftUI

@main
struct PageControllerWatchTestApp: App {
    var body: some Scene 
        WindowGroup {
            TabView {
                Color(.red)
                Color(.blue)
                Color(.orange)
            }.tabViewStyle(.page)
        }
    }
}

If I try the same code on iOS the dots are presented. Is there a way to enable the dots on watchOS?

I am using watchOS 9 Beta 4 with Xcode 14 Beta 4.

It might be a bug in watchOS 9.

If it’s not, then you can manually control the indicators by adding this parameter to the tab view style:

.tabViewStyle(.page(indexDisplayMode: .always))

Xcode 14.0 Beta 5 didn't fix the problem.

I was still able to replicate this watchOS 9 bug in Xcode 14.0 beta 6.

This was a watchOS 9 Beta bug and is fixed with the latest Beta version.

SwiftUI TabView with page style doesn't present dots on watchOS
 
 
Q