3

Adapting to User Accessibility Settings in SwiftUI

 3 years ago
source link: https://www.raywenderlich.com/20656613-adapting-to-user-accessibility-settings-in-swiftui
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Adapting to User Accessibility Settings in SwiftUIGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupShapeGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroupGroup

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

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.

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.

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.

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.

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.

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.

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

Harlan Kellaway

Harlan is a mobile engineer and engineering manager specializing in iOS. He enjoys working in healthtech and writing about how...

Instructor
Adriana Kutenko

Graphic Illustrator with a Bachelor’s Degree in Fine Arts. I am a perpetual perfection seeker with a big passion for History...

Illustrator

Comments

Add a rating for this content

Sign in to add a rating

All videos. All books.
One low price.

A raywenderlich.com subscription is the best way to learn and master mobile development — plans start at just $19.99/month!

Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.

The largest and most up-to-date collection of courses and books on iOS, Swift, Android, Kotlin, Flutter, Dart, Server-Side Swift, Unity and more!

All videos. All books. One low price.

A raywenderlich.com subscription is the best way to learn and master mobile development — plans start at just $19.99/month!

Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalogue of 50+ books and 4,000+ videos.

  • © 2021 Razeware LLC
  • Made with ♥ from around the world
  • 6000+ Tutorials and counting

raywenderlich.com and our partners use cookies to understand how you use our site and to serve you personalized content and ads. By continuing to use this site, you accept these cookies, our privacy policy and terms of service .


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK