---
title: "insertNewShape(configuration:frame:rotation:)"
framework: paperkit
role: symbol
role_heading: Instance Method
path: "paperkit/papermarkup/insertnewshape(configuration:frame:rotation:)"
---

# insertNewShape(configuration:frame:rotation:)

Add a new element on top of the paper.

## Declaration

```swift
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.

## See Also

### Inserting elements

- [insertNewImage(_:frame:rotation:)](paperkit/papermarkup/insertnewimage(_:frame:rotation:).md)
- [insertNewLine(configuration:from:to:startMarker:endMarker:)](paperkit/papermarkup/insertnewline(configuration:from:to:startmarker:endmarker:).md)
- [insertNewTextbox(attributedText:frame:rotation:)](paperkit/papermarkup/insertnewtextbox(attributedtext:frame:rotation:)-53rs.md)
- [insertNewTextbox(attributedText:frame:rotation:)](paperkit/papermarkup/insertnewtextbox(attributedtext:frame:rotation:)-67igk.md)
