Contents

UIAccessibility.DirectTouchOptions

Constants that configure how VoiceOver produces audio for direct touch areas.

Declaration

struct DirectTouchOptions

Overview

Direct touch areas are regions of the screen where VoiceOver passes gestures directly to the app instead of interpreting them as VoiceOver commands.

Examples of direct touch areas include:

  • A keyboard in a music-creation app

  • A player view in a game that produces sounds

  • An area where you sign your name in a document

If an element doesn’t use UIAccessibility.DirectTouchOptions, VoiceOver speaks the element and immediately starts sending touch events to the app.

Specify DirectTouchOptions to customize VoiceOver regions using these two constants:

  • Use silentOnTouch to ensure VoiceOver is silent when a person touches the direct touch area. In this region, the app produces its own audio feedback without conflicting with VoiceOver audio.

  • Use requiresActivation to ensure a person interacts with the user interface element before a touch passes through to the element. This is useful for scenarios where an errant touch may produce undesired input, such as a signature field.

Topics

Initializers

Type Properties

See Also

Configuring behavior