LayerContent

public enum LayerContent

An enum defining all of the potential types of layer content exported from Lightwell.

Each type has different associated information to describe the contents.

  • image: corresponds to a layer linked to a single png or jpg image. If the linked image cannot be found in the current project, the associated image will be nil.
  • imageSequence: corresponds to a layer linked to multiple images defining frame-by-frame animation. For more details on the associated content see ImageSequenceDetail.
  • box: corresponds to a rectange pimitive shape defined in Lightwell. For more details on the associated content see BoxDetail.
  • shape: corresponds to all other pimitive shapes defined in Lightwell. For more details on the associated content see ShapeDetail.
  • vector: corresponds to a layer linked to an svg asset. It will store an array of ShapeDetail defining all of the nested shapes.
  • text: corresponds to a text layer. It will store all of the font, color, and text infomation. For more details on the associated content see TextDetail.
  • scrollArea: corresponds to a scroll layer. It will store the background color and content size. For more details on the associated content see ScrollAreaDetail.
  • unspecified: corresponds to a layer without any contents and has no associated details.
  • Content for a layer linked to a single png or jpg image. If the linked image cannot be found in the current project, the associated image will be nil.

    Declaration

    Swift

    case image(UIImage?)
  • Content for a layer linked to multiple images defining frame-by-frame animation. For more details on the associated content see ImageSequenceDetail.

    Declaration

    Swift

    case imageSequence(ImageSequenceDetail)
  • Content for a rectange pimitive shape defined in Lightwell. For more details on the associated content see BoxDetail.

    Declaration

    Swift

    case box(BoxDetail)
  • Content for all other pimitive shapes defined in Lightwell. For more details on the associated content see ShapeDetail.

    Declaration

    Swift

    case shape(ShapeDetail)
  • Content for a layer linked to an svg asset. It will store an array of ShapeDetail defining all of the nested shapes.

    Declaration

    Swift

    case vector([ShapeDetail])
  • Content for a text layer. It will store all of the font, color, and text infomation. For more details on the associated content see TextDetail.

    Declaration

    Swift

    case text(TextDetail)
  • Content for a layer with scrolling contents.

    Declaration

    Swift

    case scrollArea(ScrollAreaDetail)
  • Content for a layer without any contents and has no associated details.

    Declaration

    Swift

    case unspecified