Classes

The following classes are available globally.

  • Represents a Text layer in Sketch

    See more

    Declaration

    Swift

    public class Text : Layer
  • Represents a Sketch artboard Artboards act as containers for other layers

    See more

    Declaration

    Swift

    public class Artboard : LayerContainer
  • Represents an RGB color in Sketch

    See more

    Declaration

    Swift

    public class Color : NSObject, JSONDictEncodable
  • Represents a generic Sketch layer. This is the base class for all the layer types

    This is an abstract class, do not instantiate directly!

    See more

    Declaration

    Swift

    public class Layer : NSObject, JSONDictEncodable
  • A type of Layer that can contains other layers.

    This is an abstract class, do not instantiate directly!

    See more

    Declaration

    Swift

    public class LayerContainer : Layer
  • Represents a Shape layer in Sketch

    See more

    Declaration

    Swift

    public class Shape : Layer
  • Represents a SymbolMaster in sketch, these should go in their own special separate Symbols Page. If you want to have nested dropdowns use a / in the name. i.e. Button/Blue/Small

    See more

    Declaration

    Swift

    public class SymbolMaster : LayerContainer
  • Instance of a Symbol in Sketch.

    References a SymbolMaster.

    Must have the same name as the SymbolMaster it’s referencing

    See more

    Declaration

    Swift

    public class SymbolInstance : Layer