---
title: AttributeScopes.AccessibilityAttributes.HeadingLevelAttribute
framework: foundation
role: symbol
role_heading: Enumeration
path: foundation/attributescopes/accessibilityattributes/headinglevelattribute
---

# AttributeScopes.AccessibilityAttributes.HeadingLevelAttribute

An attribute for the level of this heading.

## Declaration

```swift
@frozen enum HeadingLevelAttribute
```

## Overview

Overview 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.

## Topics

### Enumerations

- [AttributeScopes.AccessibilityAttributes.HeadingLevelAttribute.HeadingLevel](foundation/attributescopes/accessibilityattributes/headinglevelattribute/headinglevel.md)

## Relationships

### Conforms To

- [AttributedStringKey](foundation/attributedstringkey.md)
- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Copyable](swift/copyable.md)
- [DecodableAttributedStringKey](foundation/decodableattributedstringkey.md)
- [EncodableAttributedStringKey](foundation/encodableattributedstringkey.md)
- [MarkdownDecodableAttributedStringKey](foundation/markdowndecodableattributedstringkey.md)
- [ObjectiveCConvertibleAttributedStringKey](foundation/objectivecconvertibleattributedstringkey.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
