diff --git a/basics/DynamicFont/README.md b/basics/DynamicFont/README.md index ecfe6ac7..38ba3c14 100644 --- a/basics/DynamicFont/README.md +++ b/basics/DynamicFont/README.md @@ -2,6 +2,14 @@ The way Apple keeps its fonts looking good (even when people resize their devices for accessibility) is through Dynamic Font - `UIFontTextStyle`. +Simply use a preferred font, and set `adjustsFontForContentSizeCategory = true` and you will never have to adjust your font size again. iOS will do it for you. + +```swift +label.font = UIFont.preferredFont(forTextStyle: .body) +label.adjustsFontForContentSizeCategory = true +``` + + drawing drawing