How to set unique accessibilityidentifier on button label in SwiftUI
I’ve recently started working with SwiftUI and have been trying to implement Maestro testing into my app. Maestro accesses various things by looking at their accessibilityIdentifier
property, this way you can get the relevant button to simulate a button presses on or check a specific text box has the text you want. I have been adding these properties fine so far but I have been unable to add a unique accessibilityIdentifier
to a button with a label. Here is my (slightly simplified) button: