UIAccessibilityPriority
Constants that specify priorities for accessibility announcements.
Declaration
struct UIAccessibilityPriorityOverview
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])