This course is available as part of the raywenderlich.com Professional subscription. To learn more click here
Pro

Adapting to User Accessibility Settings in SwiftUI

May 11 2021 · Video Course (16 mins) · Intermediate

In this course, learn how to adapt a SwiftUI app to common Accessibility settings including Dark Mode and Dynamic Type. Work with Accessibility Inspector and SwiftUI Previews to learn how to build for Accessibility faster.

5/5 1 Rating

Version

  • Swift 5.3, iOS 14, Xcode 12.4

Adapting to User Accessibility Settings in SwiftUI

Learn how to locate Accessibility Settings on both device and the simulator. Experience previewing Dark Mode implementation on the simulator and how this differs from the quick feedback SwiftUI Previews provide.

1

Accessibility Inspector is a long-established tool that enables developers to inspect their Accessibility implementations on the simulator. Explore some powerful features unique to Accessibility Inspector and learn what’s now available at-hand with SwiftUI Previews. Leave SwiftUI’s Live Preview to discover Debug Preview and how its Environment Overrides tool applies to Accessibility.

2

Dark Mode is a common setting that enables users to view your app with a dark color palette. Learn how to use UIKit standard color objects to help your app adapt automatically to Dark Mode. Work through updating a SwiftUI view to support Dark Mode and how to test it using Debug Preview.

3

Many Accessibility setting values are available in the SwiftUI Environment. Learn how to adapt dynamically to Accessibility setting changes within in a SwiftUI view by handling Smart Invert.

4

Dynamic Type (a.k.a. Larger Text) is a common Accessibility setting that enables users to set the font size they feel comfortable reading. Work through updating a SwiftUI view to adapt dynamically to larger font sizes and learn how to test it using Debug Preview.

5

Who is this for?

If you’re looking to enhance the accessibility of your SwiftUI app by responding to user settings, this course is a good match for you. SwiftUI knowledge and previous experience with Accessibility development will be helpful, but not essential.

Covered concepts

  • Accessibility Inspector
  • SwiftUI Previews
  • SwiftUI Environment
  • Dark Mode
  • Dynamic Type

Contributors

Comments