An arbitrary hashable identifier. Pass this same value when initializing an AccessibilityRotorEntry.
Instance Method
インスタンスメソッド
accessibility
accessibilityRotorEntry(id:in:)
Defines an explicit identifier tying an Accessibility element for this view to an entry in an Accessibility Rotor.
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 パラメータ
id
namespace
A namespace created with
@Namespace()
. Pass this same namespace when initializing anAccessibility
.Rotor Entry
Discussion 議論
Use this when creating an AccessibilityRotorEntry without a namespace does not allow SwiftUI to automatically find and reveal the element, or when the Rotor entry should be associated with a sub-element of a complex view generated in a ForEach, for example.