---
title: UIAccessibilityPriority
framework: uikit
role: symbol
role_heading: Structure
path: uikit/uiaccessibilitypriority
---

# UIAccessibilityPriority

Constants that specify priorities for accessibility announcements.

## Declaration

```swift
struct UIAccessibilityPriority
```

## Overview

Overview Use these constants either with the accessibilitySpeechAnnouncementPriority property of AttributedString, or with the UIAccessibilitySpeechAttributeAnnouncementPriority attributed key. For example, the following code shows how to create an announcement with a high announcement priority: let highPriorityAnnouncement = NSAttributedString(string: "Camera active", attributes: [NSAttributedString.Key.accessibilitySpeechAnnouncementPriority: UIAccessibilityPriority.high])

## Topics

### Choosing a priority

- [high](uikit/uiaccessibilitypriority/high.md)
- [default](uikit/uiaccessibilitypriority/default.md)
- [low](uikit/uiaccessibilitypriority/low.md)

### Creating a priority

- [init(rawValue:)](uikit/uiaccessibilitypriority/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Constants

- [accessibilitySpeechPunctuation](foundation/nsattributedstring/key/accessibilityspeechpunctuation.md)
- [accessibilitySpeechLanguage](foundation/nsattributedstring/key/accessibilityspeechlanguage.md)
- [accessibilitySpeechPitch](foundation/nsattributedstring/key/accessibilityspeechpitch.md)
- [accessibilitySpeechQueueAnnouncement](foundation/nsattributedstring/key/accessibilityspeechqueueannouncement.md)
- [accessibilitySpeechIPANotation](foundation/nsattributedstring/key/accessibilityspeechipanotation.md)
- [accessibilitySpeechAnnouncementPriority](foundation/nsattributedstring/key/accessibilityspeechannouncementpriority.md)
- [accessibilitySpeechSpellOut](foundation/nsattributedstring/key/accessibilityspeechspellout.md)
