One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

AccessibilityDirectTouchOptions

struct · iOS 17.0+ · SDK 27.1

struct AccessibilityDirectTouchOptions

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.

init · iOS 17.0+

init

TypeScript
init(rawValue: number): AccessibilityDirectTouchOptions
Swift declaration
init(rawValue: AccessibilityDirectTouchOptions.RawValue)

Create a set of direct touch options

get · iOS 17.0+

rawValue

TypeScript
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"

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →