Style

@objcMembers open class Style: NSObject, NSCopying

Specifies any styles that should be applied to the block during rendering.

  • Underlying value of HatType.

    Declaration

    Swift

    public typealias HatType = String
  • Constant value for rendering a hat with a flat top.

    Declaration

    Swift

    public static let hatNone: HatType = "none"
  • Constant value for rendering a hat with a half-rounded top and horizontal base.

    Declaration

    Swift

    public static let hatCap: HatType = "cap"
  • The block that this style is attached to.

    Declaration

    Swift

    public weak var block: Block?
  • hat

    Specifies the type of hat to render on top of the block. This value is only applied to the block if it has no previous or output connections.

    Declaration

    Swift

    public var hat: HatType?