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.
Creates a shape node with a rectangular path.
convenience init(rect: CGRect)A rectangle, relative to the node’s origin.
A new shape node.