NSMutableAttributedString
public extension NSMutableAttributedString
The NSMutableAttributedString extension
-
Creates and appends a NSAttributedString
Declaration
Swift
func append(value: String, font: UIFont, color: UIColor)Parameters
valuethe string value
fontthe UIFont
colorthe UIColor
-
Creates and appends a paragraph of NSAttributedString
Declaration
Swift
func appendParagraph(value: String, font: UIFont, color: UIColor, alignment: NSTextAlignment = .natural)Parameters
valuethe string value
fontthe UIFont
colorthe UIColor
alignmentthe NSTextAlignment
View on GitHub