BezierPath

public class BezierPath : Layer

Represents Path layer in Sketch

  • Constructs a BezierPath from the given CGPath

    Declaration

    Swift

    public init(path: CGPath)
  • Declaration

    Swift

    required public init?(json: [String : Any])
  • Creates a CGPath equivalent to the given BezierPath

    Declaration

    Swift

    public var cgPath: CGPath { get }
  • Wether the first and last points in the path are equal to eachother

    Declaration

    Swift

    public var isClosed: Bool { get }