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
SymbolMastersthat represent the conforming typeDefault Implementation
Creates a set of
SymbolMasterout of the elements provided inartboardElements()SymbolMasterelements are laid out in the same fashion as they are inside theArtboardgenerated bymakeArtboard(origin:)Declaration
Swift
static func makeSymbols(startingOrigin: CGPoint) -> [SymbolMaster]Parameters
startingOriginOrigin of the first
SymbolMasterin the list
-
makeArtboard(origin:)Extension methodDeclaration
Swift
public static func makeArtboard(origin: CGPoint) -> Artboard
SymbolRepresentable Protocol Reference