Contents

init(rectOf:)

Creates a shape node with a rectangular path centered on the node’s origin.

Declaration

convenience init(rectOf size: CGSize)

Parameters

  • size:

    The size of the rectangle.

Return Value

A new shape node.

See Also

Creating a Shape from a Rectangle