---
title: "markupToolbarViewController(_:insertNewShape:)"
framework: paperkit
role: symbol
role_heading: Instance Method
path: "paperkit/markuptoolbarviewcontroller/delegate-swift.protocol/markuptoolbarviewcontroller(_:insertnewshape:)"
---

# markupToolbarViewController(_:insertNewShape:)

Add a new shape on top of the paper.

## Declaration

```swift
func markupToolbarViewController(_ markupToolbarViewController: MarkupToolbarViewController, insertNewShape type: ShapeConfiguration.Shape)
```

## Parameters

- `markupToolbarViewController`: The source of the action.
- `type`: The type of shape.

## See Also

### Inserting content

- [markupToolbarViewControllerInsertNewTextbox(_:)](paperkit/markuptoolbarviewcontroller/delegate-swift.protocol/markuptoolbarviewcontrollerinsertnewtextbox(_:).md)
- [markupToolbarViewController(_:insertNewLineWithStartMarker:endMarker:)](paperkit/markuptoolbarviewcontroller/delegate-swift.protocol/markuptoolbarviewcontroller(_:insertnewlinewithstartmarker:endmarker:).md)
- [markupToolbarViewController(_:insertNewContents:)](paperkit/markuptoolbarviewcontroller/delegate-swift.protocol/markuptoolbarviewcontroller(_:insertnewcontents:).md)
