Support text scaling

How to support preferred content size part 2

Jeroen de Vrind
Short Swift Stories

--

Read part 1: Change text size

To support text scaling, you need to configure your labels to use the preferred content size category set by the user. Instead of applying a fixed font size to a label, you apply a text style.

Use text styles

Since iOS 7, Apple provides eleven different text styles:

.largeTitle
.title1
.title2
.title3
.headline
.body
.callout
.subhead
.footnote
.caption1
.caption2

--

--

Jeroen de Vrind
Short Swift Stories

iOS Engineer at ABN Amro bank. Author of How to develop accessible iOS apps.