Tomorrow is @gbla11yday! And I'm going to start a challenge, tweeting everyday, for a whole year, about tips, resources, and other useful info on how to develop accessible iOS apps. Are you up for the challenge? #GAAD

You may also find interesting...

UIAccessibility is the cornerstone of any accessible UIKit app. Among others, understanding what an accessibility label, value, trait or hint are, is key. This is an example of how they could be configured for a custom rating component. #GAAD2022

If, for some reason, you are creating a button from scratch, instead of relying on UIButton (perhaps you are adding a fancy micro interaction animation?), take into account that you’ll need to configure the button accessibility trait.

To capture the gesture, you can override the accessibilityPerformEscape() function. In there you can dismiss your view, and return true if you could successfully handle it. https://developer.apple.com/documentation/objectivec/nsobject-swift.class/accessibilityperformescape()

Created in Swift with Ignite.

Supporting Swift for Swifts