-1

Is it possible to stylize one label with different styles, for example:

"Welcome home, Name", I would like Name to have a different color and font-style such as italics.

Snorlax
  • 4,425
  • 8
  • 37
  • 68

1 Answers1

1

NSAttributedString or NSMutableAttributedString are what you're looking for.

You can set attributes like font, size, color, background color and style for individual characters within a string.

This site provides a solid tutorial on NSAttributedString use in Swift.

Kevin B
  • 51
  • 3