-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.find using ViewType and accessibilityIdentifier no longer works #336
Comments
Xcode 16 started to mess up with the view hierarchy, filling it with
Locating the view by a11yId should give you the most precise location in the view hierarchy, I'd suggest you use that as a base call, and then either do
At least for troubleshooting purposes, you can call |
@nalexn thank you for the information, I did get it working with what you mentioned. My custom
|
I have the following overloads for convince where I want to find a view by its type and accessibilityIdentifier (since I may have multiple views of the same type in one view) which both worked up until Xcode 16 / ViewInspector 10.0.0.
Using
.find(ViewType.VStack.self)
works, but I have no idea if I have the correct view that I actually want.Using
.find(viewWithAccessibilityIdentifier: "containerVStack")
works, but I cannot use.actualView()
to get any further information on it (for the cases I am using it for custom view types and want to inspect its properties).Is the
where
clause broken or has something changed that means it no longer works as expected?The text was updated successfully, but these errors were encountered: