Convey important information in multiple modes (sounds, haptics, colour, iconography, messaging...) so no-one misses it. Take Spotify's shuffle button. It is green when on, white when off, but it has also a dot indicator.

https://wearecolorblind.com/examples/spotify-shuffle-and-repeat-buttons/

Two sketches of the Spotify app. One of them has the shuffle button off and the other one is on. For the on state, it has a different colour, green, and it is also adding a dot indicator underneath the icon. It also shows how VoiceOver announces different states, on or off.

You may also find interesting...

A reminder that the more modes we use to convey important information, the more sure we'll be that it will be perceived by all our users. Consider a combination. of color, icons, messages, sound, haptics, animations, etc.

Make sure you support Dynamic Type up to the largest text size available. Take into account that there are five extra accessibility sizes available from the Accessibility Settings. It can make a huge difference for lots of users.

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