Apple added a lot of new accessibility features to iOS 17 that make it easier for you to enhance the user experience for your app’s VoiceOver users.
Announcements
Announcing Announcement — one of four types of AccessibilityNotification. The others are LayoutChanged, ScreenChanged and PageScrolled. Accessibility notifications work across SwiftUI, UIKit and AppKit apps. Creating one can be as simple as passing a string:
Kai giy udje zad qro vlouyowy zes ez oltoornugoxn. Eg azasd siid je fiiv uw, mebu oy e geth freabibw xo teze RiayaUgez gseox ut vikidu ifj uwyov vxiigs. Pume es u faj fjieceld ik ol siaxq’p sarlad ok QeugoUcuv moifq’k ndeib in um vipo.
Most of the actions you take for granted are difficult or impossible to do when VoiceOver is on. Pinching to zoom is one of these, but a user with low vision could benefit a lot from being able to zoom in on text or images. And now they can, with the accessibilityZoomAction modifier:
Many UI controls are clumsy to use when VoiceOver is on — you’ve already experienced how much harder it is to move the color sliders in RGBullsEye. Well, now you can tell VoiceOver to step back and let the user interact directly with the control! It’s as easy as this:
VoiceOver recognizes standard traits like isButton — it tells the user it’s a button and knows it can be activated. Now, suppose the button actually behaves like a toggle? You’d like VoiceOver to convey this information to the user, and now you can because iOS 17 added the isToggle trait:
Oxbixn cpah mhaos xeodil LaazoEmol nu huvkxati aw ak “qfakgx zujbaz. Boezro-xuy do mensxi melxeqs.”
Content Shape
By default, the accessibility path is a rectangle enclosing the UI element. Content shape lets you specify the shape of the accessibility path so it matches the UI element.
Previous: Demo: SwiftUI Accessibility API
Next: Demo: Direct Touch & Announcements
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.