Style
public struct Style : JSONDictEncodable
A struct containing styling information about a string
-
Undocumented
See moreDeclaration
Swift
public enum Alignment : Int
-
Name of the font as it appears in macOS. Standard naming convention is
FontNameInCamelCase-FontWeightInCamelCase.
i.e. SFPro-Regular, Arial-Black, HelveticaNeue-UltraLightDeclaration
Swift
public let fontDescriptor: String
-
Font point size
Declaration
Swift
public let fontSize: CGFloat
-
Whether the
Segment
is underlinedDeclaration
Swift
public let isUnderlined: Bool
-
Declaration
Parameters
fontDescriptor
Name of the font as it appears in macOS. Standard naming convention is
FontNameInCamelCase-FontWeightInCamelCase
. i.e. SFPro-Regular, Arial-Black, HelveticaNeue-UltraLightfontSize
Font point size
color
Color of the
Segment
alignment
isUnderlined
Whether the
Segment
is underlined -
Undocumented
Declaration
Swift
public init?(json: [String : Any])
-
Undocumented
Declaration
Swift
public func toJson() -> [String : Any]