With the attribute accessibilitySpeechPunctuation, you can ask VoiceOver to speak any punctuation marks in your attributed accessibility label, if that is what you want. Good for code snippets?

App with some Swift code showing how to assign the string “Hello World” to a string constant. VoiceOver announces it by default as “let myString String Hello World”. With the speech punctuation attribute it will be announced instead as “let myString colon String equals quotation mark Hello World quotation mark”

You may also find interesting...

One of the accessibility issues I see more often in iOS apps, believe it or not, is unlabelled elements. This happens especially for buttons with an icon but no title. In those cases, you need to configure an accessibility label manually.

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.

Manual testing is crucial. And therefore, reducing friction to let you start your testing process can be a huge help. Selecting some accessibility shortcuts will do that, putting most of iOS' accessibility features at a triple-click of a button.

Created in Swift with Ignite.

Supporting Swift for Swifts