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

# markupEditViewController(_:insertNewShape:)

Add a new shape on top of the paper.

## Declaration

```swift
func markupEditViewController(_ markupEditViewController: MarkupEditViewController, insertNewShape type: ShapeConfiguration.Shape)
```

## Parameters

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

## See Also

### Inserting content

- [markupEditViewControllerInsertNewTextbox(_:)](paperkit/markupeditviewcontroller/delegate-swift.protocol/markupeditviewcontrollerinsertnewtextbox(_:).md)
- [markupEditViewController(_:insertNewLineWithStartMarker:endMarker:)](paperkit/markupeditviewcontroller/delegate-swift.protocol/markupeditviewcontroller(_:insertnewlinewithstartmarker:endmarker:).md)
- [markupEditViewController(_:insertNewContents:)](paperkit/markupeditviewcontroller/delegate-swift.protocol/markupeditviewcontroller(_:insertnewcontents:).md)
