The heading level to associate with this element from the available Accessibility
levels.
Instance Method
インスタンスメソッド
accessibility
accessibilityHeading(_:)
Set the level of this heading.
Availability 有効性
- iOS 15.0+
- iPadOS 15.0+
- macOS 12.0+
- Mac Catalyst 15.0+
- tvOS 15.0+
- watchOS 8.0+
Technology
- Swift
UI
Declaration 宣言
func accessibilityHeading(_ level: AccessibilityHeadingLevel
) -> ModifiedContent
<Content, Modifier>
Available when
Modifier
is AccessibilityAttachmentModifier
.Parameters パラメータ
level
Heading Level
Discussion 議論
Use this modifier to set the level of this heading in relation to other headings. The system speaks the level number of levels Accessibility
through Accessibility
alongside the text.
The default heading level if you don’t use this modifier is Accessibility
.