Follow along at https://www.hackingwithswift.com/100/swiftui/76.
This day covers Part Three of Project 15: Accessibility
in the 100 Days of SwiftUI Challenge. (Project files associated with Project 15 can be found in the directory for Part One.)
In addition to recapping the material covered during the project's other days, Day 76 focuses on extending the project according to a set of challenges.
The check out view in
Cupcake Corner
uses an image that doesn’t add anything to the UI, so find a way to make the screen reader not read it out.
- 🔗 Commit
Fix the steppers in BetterRest so that they read out useful information when the user adjusts their values.
- 🔗 Commit
Do a full accessibility review of Moonshot – what changes do you need to make so that it’s fully accessible?
-
🔗 Commit
-
I manually removed the
isButton
trait and add theisLink
trait from theNavigationLink
in the Missions List to have it read as a link. I'm not sure if this is a bug, though -- or ifButton
is actually supposed to be the official trait 🤔. -
Using a
decorative
Image for each mission's insignia. A more advanced approach would be writing detailed visual descriptions of each insignia and supplying those for the accessibility label. -
Using a
decorative
Image for each astronaut's photo on their details page.