accessibilitySpeechIPANotation is useful for indicating how foreign words are pronounced. It really annoys me to hear the word paella constantly mispronounced 😁. You could also specify language, but this way, VoiceOver won't change its voice.

Example, with a drawing of the paella emoji, shows how you can specify the correct pronunciation for the text “paella” using the IPA notation. The code sets an accessibilityAttributeLabel to the UILabel with the string and a dictionary containing the accessibilitySpeechIPANotation attribute key and the “pɑːˈeɪə” value.

Example code in the image:

let recipeNameLabel = UILabel()
let attributedLabel = NSAttributedString(
    string: "Paella",
    attributes: [.accessibilitySpeechIPANotation: "pɑːˈeɪə"]
)

recipeNameLabel.accessibilityAttributedLabel = attributedLabel

You may also find interesting...

An interesting speech attribute for attributed accessibility labels is accessibilitySpeechIPANotation that lets you specify how VoiceOver should pronounce a label with the International Phonetic Alphabet (IPA) notation. https://developer.apple.com/documentation/foundation/nsattributedstring/key/accessibilityspeechipanotation

Custom actions work as great on Switch Control as they do in VoiceOver. It makes navigation much, much, faster and you’ll be able to find all those custom actions in the Switch Control menu.

UINotificationFeedbackGenerator has a “success” feedback type. Consider using it when a task was performed successfully together with any other visuals or sound. The use of multiple modes just makes it easier for everyone to understand your app.

Created in Swift with Ignite.

Supporting Swift for Swifts