Skip to content

Accessibility

Yegor Miroshnichenko edited this page Feb 11, 2018 · 4 revisions

iOS offers accessibility features for people with disabilities. StatusAlert supports some of them. To learn how to use them read on.

Reduce Transparency

If "Reduce Transparency" mode is on, all blur effects will be disabled regardless of your code.

By default, StatusAlert uses blurred background. To provide custom background color to use in "Reduce Transparency" mode you can set backgroundColor property for alert appearance (See Appearance for more details).

VoiceOver

"VoiceOver" provides to every element on the screen the ability to pronounce something, describing its content or helping to understand what's going on.

To provide message to be announced when alert appears use alert's accessibilityAnnouncement property.

EXAMPLE

alert.accessibilityAnnouncement = "StatusAlert is successfully shown, congratulations!"

This message will be pronounced at once alert did appear.

Clone this wiki locally