Episode #477

Styling Text with Attributed Strings

Series: Layout in Code

13 minutes
Published on February 10, 2021

This video is only available to subscribers. Get access to this video and 510 others.

To work with styled text we'll use NSAttributedStrings, which allow us to apply styles to ranges of text. Doing this in code is a bit more cumbersome than in storyboards, but allows us to control things like font size, color, style, kerning, line spacing and more.

This episode uses Swift 5.3, Xcode 12.4.