Day 76
Day 76 ๊ด๋ จ
Project 15, part 3
Now that youโve seen how easy it is to fix up our projects, itโs time for you to continue that job with some challenges and a review of what youโve learned. I think you wonโt find it hard at all, and perhaps even will continue to be surprised at how easy SwiftUI makes accessibility.
Steve Ballmer (yes, that Steve Ballmer) once said โaccessible design is good design โ it benefits people who donโt have disabilities as well as people who do.โ And heโs right: taking the time to make sure your app works for everyone will provide long-lasting benefits for all your users.
Today you should work through the wrap up chapter for project 15, complete its review, then work through all three of its challenges.
Accessibility: Wrap up
Accessibility: Wrap up
Accessibility isnโt something thatโs โnice to haveโ โ it should be regarded as a fundamental part of your application design, and considered from the very beginning onwards. SwiftUI didnโt get its excellent accessibility support because Apple thought about it at the last minute, but instead because it got baked in from the start โ every part of SwiftUI was crafted with accessibility in mind, and weโd be doing a great disservice to our users if we didnโt match that same standard.
Whatโs more, I hope you can agree that adding extra accessibility is surprisingly easy โ some special values here, a little grouping there, and some bonus traits are all simple things that take only minutes to add, but are the difference between โopaqueโ and โeasy to useโ for millions of people around the world.
Review what you learned
Anyone can sit through a tutorial, but it takes actual work to remember what was taught. Itโs my job to make sure you take as much from these tutorials as possible, so Iโve prepared a short review to help you check your learning.
Click here to review what you learned in this project.
Challenge
One of the best ways to learn is to write your own code as often as possible, so here are three ways you should try extending this app to make sure you fully understand whatโs going on.
- The check out view in Cupcake Corner uses an image and loading spinner that donโt add anything to the UI, so find a way to make the screenreader not read them out.
- Fix the list rows in iExpense so they read out the name and value in one single VoiceOver label, and their type in a hint.
- Do a full accessibility review of Moonshot โ what changes do you need to make so that itโs fully accessible?
Accessibility: Wrap up - Additional