Protocols

The following protocols are available globally.

  • Conform your UIView to this protocol to easily create an Artboard for your example views Provide example views using the artboardElements() method and create an artboard by calling makeArtboard(origin:)

    See more

    Declaration

    Swift

    public protocol ArtboardRepresentable
  • Creates an Artboard and SymbolMasters out of elements provided by artboardElements().

    The Artboard created by makeArtboard(origin:) contain layers of type SymbolInstance

    The SymbolMasters created by makeSymbols(startingOrigin:exportDictionary:) must be present somewhere in the Document

    See more

    Declaration

    Swift

    public protocol SymbolRepresentable : ArtboardRepresentable
  • Conform a UIView to this type in order for it to be picked up as a nested Symbol

    See more

    Declaration

    Swift

    public protocol SketchNestable