An option set that defines the functionality of a view's direct touch area.
Members (4)
get · iOS 17.0+
silentOnTouch
TypeScript
get silentOnTouch(): AccessibilityDirectTouchOptions
Swift declaration
static let silentOnTouch: AccessibilityDirectTouchOptions
Allows a direct touch area to immediately receive touch events without
an assitive technology, such as VoiceOver, speaking. Appropriate for
apps that provide direct audio feedback on touch that would conflict
with speech feedback.
get · iOS 17.0+
requiresActivation
TypeScript
get requiresActivation(): AccessibilityDirectTouchOptions
Swift declaration
static let requiresActivation: AccessibilityDirectTouchOptions
Prevents touch passthrough with the direct touch area until an
assistive technology, such as VoiceOver, has activated the direct
touch area through a user action, for example a double tap.
getRawValue($self: AccessibilityDirectTouchOptions): number
Swift declaration
let rawValue: AccessibilityDirectTouchOptions.RawValue
The corresponding value of the raw type.
A new instance initialized with `rawValue` will be equivalent to this
instance. For example:
enum PaperSize: String {
case A4, A5, Letter, Legal
}
let selectedSize = PaperSize.Letter
print(selectedSize.rawValue)
// Prints "Letter"
print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!)
// Prints "true"