for below code:
Text("Hello, world!")
.accessibilityIdentifier("Text")
I need to find the view with accessibilityIdentifier is 'Text', and get the Text sub view's frame;
I have searched some solutions, like:
1.PreferenceKey + anchorPreference;
2.UIViewRepresentable;
but this solutions require some additional code, can not find a sub view merely through the accessibilityIdentifier of the system.
Topic:
UI Frameworks
SubTopic:
SwiftUI