NSMutableAttributedString

public extension NSMutableAttributedString

The NSMutableAttributedString extension

  • Creates and appends a NSAttributedString

    Declaration

    Swift

    func append(value: String, font: UIFont, color: UIColor)

    Parameters

    value

    the string value

    font

    the UIFont

    color

    the UIColor

  • Creates and appends a paragraph of NSAttributedString

    Declaration

    Swift

    func appendParagraph(value: String,
                         font: UIFont,
                         color: UIColor,
                         alignment: NSTextAlignment = .natural)

    Parameters

    value

    the string value

    font

    the UIFont

    color

    the UIColor

    alignment

    the NSTextAlignment