Initializer

init(path:)

Creates a shape node from a Core Graphics path.

Declaration

convenience init(path: CGPath)

Parameters

path

The Core Graphics path to use. The path is relative to the node’s origin.

Return Value

A new shape node.

See Also

Creating a Shape from a Path

init(path: CGPath, centered: Bool)

Creates a shape node from a Core Graphics path, centered around its position.

var path: CGPath?

The path that defines the shape.