Supports Dynamic Type
note
This is an experimental rule, and therefore its result(s) are considered to be in beta testing. Learn more about experimental rules and how you can help improve them.
Text elements should have the required properties to support Dynamic Type and resize the text to the user's device preference.
Impact
People with low vision are most affected by text that cannot resize. Dynamic Type is an assistive technology that allows the end-user to change the font size device-wide to read more easily.
Confirmation
- Navigate to the screen containing text and observe the current font size and its layout
- Enlarge the font size by changing the Dynamic Type setting:
- If using a simulator:
- Open up Accessibility Inspector
- On the top-left corner of the inspector, change the device from your Mac to the iOS simulator
- Select the "Settings" button in the top-right corner of the inspector
- Under "Font Size", move the slider to a larger setting
- If using an iOS 13.0+ device:
- Open up Settings
- Select "Accessibility"
- Select "Display & Text Size"
- Select "Larger Text"
- Move the slider at the bottom of the page to a larger setting
- If using a simulator:
- Navigate back to your app and observe the same screen
- Inaccessible: The text did not change size after updating the Dynamic Type setting.
- Accessible: The text did change size.
How to Fix
An issue found by this rule occurs when views do not support Dynamic Type settings.
UIKit
Read more about supporting Dynamic Type in UIKit here.
SwiftUI
This rule is not currently supported with SwiftUI views.