I have a button with the following properties:
accessibilityLabel: "Action Button",
traits: "Button",
accessibilityHint: "Performs the main action".
The voiceover reads the button as follows:
Action Button, Button, Performs the main action.
I want to understand how to configure it to only speak the accessibilityHint
or only the accessibilityLabel
and never speak the traits.
In another example, a switch has the traits: Button
, and Toggle
. So these traits are a part of what the voiceover speaks. I want only the accessibilityLabel
or accessibilityHint
to be spoken in this case.
Please let me know how.
Thanks