Function

UIAccessibilityIsVoiceOverRunning()

Returns a Boolean value indicating whether VoiceOver is running.

Declaration

func UIAccessibilityIsVoiceOverRunning() -> Bool

Return Value

true if VoiceOver is currently running; otherwise, false.

Discussion

You can use this function to customize your application’s UI specifically for VoiceOver users. For example, you might want UI elements that usually disappear quickly to persist onscreen for VoiceOver users. Note that you can also listen for the UIAccessibilityVoiceOverStatusChanged notification to find out when VoiceOver starts and stops.