NSAttributedString Extensions

Omar Albeik edited this page Dec 9, 2016 · 2 revisions

NSAttributedString extensions

Properties:

Name Description
bold Bold string
underline Underlined string
italic Italic string
strikethrough Strikethrough string

Methods:

Name Return Description
colored(with color: UIColor) NSAttributedString Add color to NSAttributedString.

Operators:

Name Return Description
+= NSAttributedString Add a NSAttributedString to another NSAttributedString