Layer
public class Layer : 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!
-
Name of the Layer as it appears in Sketch
Declaration
Swift
public let name: String
-
Frame of the layer inside its parent
Declaration
Swift
public var frame: CGRect
-
Undocumented
Declaration
Swift
public let shadow: Shadow?
-
Do not use this directly, use
makeLayer(json:)
insteadDeclaration
Swift
required public init?(json: [String : Any])