@ericliang I tried the following, as you suggested, but the outcome is the same as with the initial code for iOS 15/16;
VStack {
VStack {
Text("some text")
Text("more text")
}
// wrapper 1
.accessibilityElement(children: .contain)
.accessibilityIdentifier("ID 1111111111111")
}
// wrapper 2
.accessibilityElement(children: .contain)
.accessibilityIdentifier("ID 2222222222222")
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: