accessibilitySpeechPitch lets you emphasise something changing VoiceOver's pitch. The value goes from 0.0 to 2.0. The default is 1.0. Twitter could change pitch to read hashtags, for example, avoiding repetition but still signalling they're there.

Example shows how you can specify changing the pitch for a portion of an attributed accessibility label, using the accessibilitySpeechPitch attribute, for hashtags on a tweet. By default VoiceOver would read something like “Writing about developing accessible hashtag iOS apps in hashtag 365 days iOS Accessibility hashtag accessibility hashtag a 11 y”. There’s lots of repetition of the word hashtag. But it could be changed so it says “Writing about developing accessible iOS apps in 365 days iOS Accessibility accessibility a 11 y” where iOS, 365 days iOS accessibility, accessibility and a 11 y, is read with a lower pitch of 0.7.

You may also find interesting...

Even when setting a view as modal for accessibility, you may notice that VoiceOver's focus stays in the same place, instead of moving to the presented view. You can post a screen changed notification and pass the view that should get the focus.

"We have one job, and that's to make our apps work. And if you are not implementing accessibility features, you are forgetting about making it work for a lot of people" @NovallSwift Couldn't have said it better! https://x.com/novallswift/status/1328387659744505856

Guidelines from Apple: Begin with a verb that explains the results of the action. Avoid using the imperative form of a verb because that can make it sound like a command. Don’t include the action type. Don’t include the control. https://developer.apple.com/documentation/objectivec/nsobject-swift.class/accessibilityhint

Created in Swift with Ignite.

Supporting Swift for Swifts