NSMutableAttributedString

public extension NSMutableAttributedString
extension NSMutableAttributedString: InitializeableOccupiable
  • Sets font for the first occurence of text. If text is nil sets font for entire string.

    Declaration

    Swift

    func set(font: UIFont, for text: String? = nil)
  • Sets aligment for the first occurence of text. If text is nil sets aligment for entire string.

    Declaration

    Swift

    func set(aligment: NSTextAlignment? = nil,
             headIndent: CGFloat? = nil,
             lineSpacing: CGFloat? = nil,
             lineHeightMultiple: CGFloat? = nil,
             for text: String? = nil)
  • Sets text kern

    Declaration

    Swift

    func set(kern: CGFloat)
  • Makes text underlined

    Declaration

    Swift

    func setUnderline()
  • Makes text striked through

    Declaration

    Swift

    func setStrikethrough(text: String? = nil)

InitializeableOccupiable

  • Undocumented

    Declaration

    Swift

    public var isEmpty: Bool { get }