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.
Creates a shape node with a rectangular path centered on the node’s origin.
convenience init(rectOf size: CGSize)The size of the rectangle.
A new shape node.