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
Segmentis underlinedDeclaration
Swift
public let isUnderlined: Bool -
Declaration
Parameters
fontDescriptorName of the font as it appears in macOS. Standard naming convention is
FontNameInCamelCase-FontWeightInCamelCase. i.e. SFPro-Regular, Arial-Black, HelveticaNeue-UltraLightfontSizeFont point size
colorColor of the
SegmentalignmentisUnderlinedWhether the
Segmentis underlined -
Undocumented
Declaration
Swift
public init?(json: [String : Any]) -
Undocumented
Declaration
Swift
public func toJson() -> [String : Any]
Style Structure Reference