NSAttributedString_Attribute - linhay/Stem GitHub Wiki

NSAttributedString.Attribute

富文本属性

enum Attribute

Initializers

init?(key:value:)

public init?(key: NSAttributedString.Key, value: Any)

Enumeration Cases

font

case font(_: UIFont)

paragraphStyle

case paragraphStyle(_: NSParagraphStyle)

foregroundColor

case foregroundColor(_: UIColor)

backgroundColor

case backgroundColor(_: UIColor)

ligature

case ligature(_: AttributeLigatureType)

kern

case kern(_: CGFloat)

strikethroughStyle

case strikethroughStyle(_: NSUnderlineStyle)

strikethroughColor

case strikethroughColor(_: UIColor)

underlineColor

case underlineColor(_: UIColor)

underlineStyle

case underlineStyle(_: NSUnderlineStyle)

strokeColor

case strokeColor(_: UIColor)

strokeWidth

case strokeWidth(_: CGFloat)

shadow

case shadow(_: NSShadow)

verticalGlyphForm

case verticalGlyphForm(_: VerticalGlyphFormStyle)

textEffect

case textEffect(_: TextEffectStyle)

attachment

case attachment(_: NSTextAttachment)

link

case link(_: Any)

baselineOffset

case baselineOffset(_: CGFloat)

obliqueness

case obliqueness(_: CGFloat)

expansion

case expansion(_: CGFloat)

writingDirection

case writingDirection(_: [NSWritingDirection])

Properties

rawValue

var rawValue: (key: NSAttributedString.Key, value: Any?)