NSMutableAttributedString
public extension NSMutableAttributedString
extension NSMutableAttributedString: InitializeableOccupiable
-
Sets font for the first occurence of text. If text is
nilsets 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
nilsets 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)
-
Undocumented
Declaration
Swift
public var isEmpty: Bool { get }
NSMutableAttributedString Extension Reference