How to add UIAccessibility feature to a UIButton Action?
-
22-06-2021 - |
Question
I am new to Accessibility and i got a requirement to implement this feature on click of a UIButton. Can someone please help me out in providing any sample code on how to implement this?
Solution
most of the ui elements have a .accessibilityHint and .accessibilityLabel properties.
just name them appropriately and you are good to go.
if you want more detail, check this SO post: iOS accessibility: label vs hint
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow