Localized text describing to the user what is contained in this additional information entry. For example: “orientation”.
Initializerinit(_:
init(_:id:)
Create an
AccessibilityCustomContentKey
with the specified label and identifier.Availability 有効性
- iOS 15.0+
- iPadOS 15.0+
- macOS 12.0+
- Mac Catalyst 15.0+
- tvOS 15.0+
- watchOS 8.0+
Technology
- Swift
UI
Declaration 宣言
init(_ labelKey: LocalizedStringKey
, id: String
)
Parameters パラメータ
labelKey
id
String used to identify the additional information entry to SwiftUI. Adding an entry will replace any previous value with the same identifier.