VoiceOver focus on a tvOS SwiftUI App

Hi,


We are developing an application for tvOS version 15.0 using SwiftUI with Xcode 13.3.

We have a view like this one:


@State var state: States = .letters

var body: some View {

VStack{

if (state == .letters) {

Text("Text one")

Text("Text two")

Text("Text three")

Button("Go to numbers") {

state = .numbers

}

} else {

Text("Text 1")

Text("Text 2")

Text("Text 3")

Button("Go to letters") {

state = .letters

}

}

}

}

enum States {

case letters

case numbers

}


Using VoiceOver with navigation mode enabled we are able to move the focus across all buttons even after the @State variable has changed.


If we change to exploration mode we get the following message:


[Accessibility] Went all the way up the container chain from @, but could not find any container that was one of the ordered children of @.  This may be acceptable if it happened right around a layout change, but it would be best to double check by swiping left/right to see if you can get to all elements.


After that we cannot move the VoiceOver focus to other items on the view using flick left or right.


Why are we getting that message?

Are there problems with VoiceOver on Apple TV?


Thanks


Apple TV 4K

Posted on Mar 29, 2022 4:21 AM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

VoiceOver focus on a tvOS SwiftUI App

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.