Instance Method インスタンスメソッド

accessibilityCustomContent(_:_:importance:)

Add additional accessibility information to the view.

Declaration 宣言

func accessibilityCustomContent(_ label: Text, _ value: Text, importance: AXCustomContent.Importance = .default) -> ModifiedContent<Self, AccessibilityAttachmentModifier>

Parameters パラメータ

label

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

value

Text value for the additional accessibility information. For example: “landscape.”

importance

Importance of the accessibility information. High-importance information gets read out immediately, while default-importance information must be explicitly asked for by the user.

Discussion 議論

Use this method to add information you want accessibility users to be able to access about this element, beyond the basics of label, value, and hint. For example: accessibilityCustomContent can be used to add information about the orientation of a photograph, or the number of people found in the picture.

See Also 参照