Initializer

init(_:id:)

Create an AccessibilityCustomContentKey with the specified label and identifier.

Declaration 宣言

init(_ label: Text, id: String)

Parameters パラメータ

label

Localized text describing to the user what is contained in this additional information entry. For example: “orientation”.

id

String used to identify the additional information entry to SwiftUI. Adding an entry will replace any previous value with the same identifier.