From the course: iOS App Development: Accessibility

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Labels

Labels - iOS Tutorial

From the course: iOS App Development: Accessibility

Start my 1-month free trial

Labels

- [Instructor] In the last video, we learned how an element declares itself accessible so assistive technologies can access them. When Voiceover focuses on an accessible element, it reads a description out loud. If Voiceover lands on a label, it defaults to reading that label to a user. As we saw when touring the Accessibility Inspector, if it lands on an image it defaults to reading the image's file name. The UI Accessibility protocol has two properties that we can set to override these defaults and provide more meaningful, helpful, or contextual descriptions of our accessible elements. In the next two videos, we'll learn about Accessibility Label and Accessibility Hint and how to use them in order to provide a better experience for Voiceover users. I'm in the Accessibility Inspector, and if I turn on the inspection pointer and hover over my Favorites button, you might remember how our label defaulted to the image's file name. This is really unhelpful and we can do better for our…

Contents