Accessibility announcement on iOS
Users of assistive technologies should be made aware of important changes in content through accessibility announcements. What happens next depends on the active assistive technology. The screen reader for example, will read the message aloud.
On iOS, you post an accessibility message by using the
UIAccessibility object. The
post method can be used to post data to assistive technologies. Set the type to
announcement and supply a
string argument to announce something.
UIAccessibility.post(notification: .announcement, argument: "Appt announcement")