Thanks for the advice π MobileTen's suggested fixes don't quite work for my setup but the first of his/her suggestions has given me confidence in the solution that I have been converging towards. I'll post an answer in this thread that summarises my solution.
Post
Replies
Boosts
Views
Activity
Thanks for the suggestions π The three suggestions don't quite work for my setup but the first one gives me confidence that the solution which I have been converging towards isn't all too bad. The best solution that I have been able to come up with β which is similar to your first suggestion βΒ is to create a new dynamic framework DF, link it to StaticLibrary with the -all_load linker flag and then link App, DynamicFramework1 and DynamicFramework2 to DF instead of StaticLibrary.
Thanks for your response. I have submitted a suggestion in Feedback Assistant just now for an API like accessibilityElement(children: .combine) to be added to UIKit. Until that's added, I'm running with your idea of updating the parent view's accessibility label whenever the text in any of the children changes by means of the stack view, as follows: parentView.accessibilityLabel = stackView.arrangedSubviews.map { $0.accessibilityLabel ?? "" }.joined(separator: " ").
This works π Thank you π
Sadly, calling application.datePickers["DatePicker"].tap() to dismiss the DatePicker does not work on iOS 16 devices. I have created a new forum thread for the issue here.
The XCUIEelement class β the class that we use to interact with elements in UI tests β does not have a dismiss() or done() function. How are you calling DatePicker.dismiss() and NavigationBar.done() in UI tests? Please explain.