SymbolRepresentable
public protocol SymbolRepresentable : 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
-
makeSymbols(startingOrigin:)
Default implementationGenerates
SymbolMasters
that represent the conforming typeDefault Implementation
Creates a set of
SymbolMaster
out of the elements provided inartboardElements()
SymbolMaster
elements are laid out in the same fashion as they are inside theArtboard
generated bymakeArtboard(origin:)
Declaration
Swift
static func makeSymbols(startingOrigin: CGPoint) -> [SymbolMaster]
Parameters
startingOrigin
Origin of the first
SymbolMaster
in the list
-
makeArtboard(origin:)
Extension methodDeclaration
Swift
public static func makeArtboard(origin: CGPoint) -> Artboard