Contents

init(rect:)

Creates a shape node with a rectangular path.

Declaration

convenience init(rect: CGRect)

Parameters

  • rect:

    A rectangle, relative to the node’s origin.

Return Value

A new shape node.

See Also

Creating a Shape from a Rectangle