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

# markupEditViewController(_:insertNewContents:)

Add new content on top of the paper.

## Declaration

```swift
func markupEditViewController(_ markupEditViewController: MarkupEditViewController, insertNewContents toInsert: PaperMarkup)
```

## Parameters

- `markupEditViewController`: The source of the action.
- `toInsert`: The markup whose contents is added on top of this paper.

## Discussion

Discussion This is used for inserting any custom content, and non-shape elements like signatures or loupes.

## See Also

### Inserting content

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