VisualTextItem

public struct VisualTextItem: VisualItemRepresentable

The associated value of a VisualItem of type .text.

  • The text for this VisualTextItem

    Declaration

    Swift

    public let value: String
  • The subtype for this VisualTextItem

    Declaration

    Swift

    public let subtype: VisualTextItemSubtype
  • Create a VisualTextItem.

    Declaration

    Swift

    public init(value: String, subtype: VisualTextItemSubtype? = .body)

    Parameters

    value

    The text for the label

    subtype

    The text subtype to use (defaults to VisualTextItemSubtype.body)

  • Create a VisualTextItem from attributes.

    Declaration

    Swift

    public init?(attributes: AnyObject?)

    Parameters

    attributes

    the attributes (value, subtype)