---
title: UIAccessibilityTextAttributeHeadingLevel
framework: uikit
role: symbol
role_heading: Global Variable
path: uikit/uiaccessibilitytextattributeheadinglevel
---

# UIAccessibilityTextAttributeHeadingLevel

A key for specifying the heading level of the text.

## Declaration

```occ
extern NSAttributedStringKey const UIAccessibilityTextAttributeHeadingLevel;
```

## Overview

Overview The value of this key is an NSNumber object with a value that is a number in the range of 0 to 6. Use 0 to indicate the absence of a specific heading level, and use other numbers to indicate the heading level.

## See Also

### Constants

- [UIAccessibilityTextAttributeCustom](uikit/uiaccessibilitytextattributecustom.md)
- [UIAccessibilityTextAttributeContext](uikit/uiaccessibilitytextattributecontext.md)
