Episode #479

Easier Styled Strings with BonMot

Series: Layout in Code

19 minutes
Published on February 25, 2021

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

Working with NSAttributedStrings can be a bit cumbersome, and can present some challenges when you want to localize your strings. We can make things much easier to work with by leveraging the BonMot library, which provides a cleaner interface for styling strings, allows us to separate styling from the views and strings, and customize tags we can use to mix styles in the same string.

This episode uses Swift 5.3, Xcode 12.4.