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

accessibilityHeading(_:)

Set the level of this heading.

Declaration 宣言

func accessibilityHeading(_ level: AccessibilityHeadingLevel) -> ModifiedContent<Content, Modifier>
Available when Modifier is AccessibilityAttachmentModifier.

Parameters パラメータ

level

The heading level to associate with this element from the available AccessibilityHeadingLevel levels.

Discussion 議論

Use this modifier to set the level of this heading in relation to other headings. The system speaks the level number of levels AccessibilityHeadingLevel.h1 through AccessibilityHeadingLevel.h6 alongside the text.

The default heading level if you don’t use this modifier is AccessibilityHeadingLevel.unspecified.