insertNewShape(configuration:frame:rotation:)
Add a new element on top of the paper.
Declaration
mutating func insertNewShape(configuration: ShapeConfiguration, frame: CGRect, rotation: CGFloat = 0)Parameters
- configuration:
The configuration of the shape to insert.
- frame:
The frame to add the element at.
- rotation:
The rotation in radians to add the element with.