Localized string used to show this Rotor entry to users.
Initializerinit(_:
init(_:id:in:textRange:prepare:)
Create a Rotor entry with a specific label, identifier and namespace, and with an optional range.
Availability 有効性
- iOS 15.0+
- iPadOS 15.0+
- macOS 12.0+
- Mac Catalyst 15.0+
- tvOS 15.0+
- watchOS 8.0+
Technology
- Swift
UI
Declaration 宣言
Parameters パラメータ
label
id
Used to find the UI element associated with this Rotor entry. This identifier and namespace should match a call to
accessibility
.Rotor Entry(id: in) namespace
Namespace for this identifier. Should match a call to
accessibility
.Rotor Entry(id: in) textRange
Optional range of text associated with this Rotor entry. This should be a range within text that is set as the accessibility label or accessibility value of the associated element.
prepare
Optional closure to run before a Rotor entry is navigated to, to prepare the UI as needed. This should be used to bring the Accessibility element on-screen, if scrolling is needed to get to it.