NSMutableAttributedString
extension NSMutableAttributedString
-
Add attributes for highlighted text within the string that is encompassed between two ‘*’ characters.
These characters will be evaluated and stripped from the string if found.
Declaration
Swift
public func mimiAddHighlightsAttribute(with font: UIFont, color: UIColor? = nil)
Parameters
font
Font to use for highlighted text.
color
Color to use for highlighted text.