AttributeScopes.AccessibilityAttributes.HeadingLevelAttribute
An attribute for the level of this heading.
Declaration
@frozen enum HeadingLevelAttributeOverview
Assistive technologies can use this property to improve navigation and describe the level number of levels AttributeScopes.AccessibilityAttributes.HeadingLevelAttribute.HeadingLevel.h1 through AttributeScopes.AccessibilityAttributes.HeadingLevelAttribute.HeadingLevel.h6 alongside the text.
For example, you can rank sections within UI using a heading level. The most important section is marked withAttributeScopes.AccessibilityAttributes.HeadingLevelAttribute.HeadingLevel.h1. Nested sections can use subsequent heading levels. For unranked headings, use AttributeScopes.AccessibilityAttributes.HeadingLevelAttribute.HeadingLevel.unspecified.