SymbolMaster
public class SymbolMaster : LayerContainer
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
-
Creates a SymbolMaster that can be referenced by a
SymbolInstance
Declaration
Swift
public init(name: String, frame: CGRect, layers: [Layer])
Parameters
name
Name as it appears in sketch. Must be Unique. Use a
/
in the name to create nested dropdowns. i.e.Button/Blue/Small
frame
Frame of the SymbolMaster inside its parent
Page
layers
Child layers that are contained inside the SymbolMaster
-
Declaration
Swift
required public init?(json: [String : Any])