<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/MarkupEditViewController/Delegate-swift.protocol",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit24MarkupEditViewControllerC8DelegateP"
  },
  "title" : "MarkupEditViewController.Delegate"
}
-->

# MarkupEditViewController.Delegate

```
protocol Delegate : AnyObject
```

## Topics

### Inserting content

[`func markupEditViewController(MarkupEditViewController, insertNewShape: ShapeConfiguration.Shape)`](/documentation/PaperKit/MarkupEditViewController/Delegate-swift.protocol/markupEditViewController(_:insertNewShape:))

Add a new shape on top of the paper.

[`func markupEditViewControllerInsertNewTextbox(MarkupEditViewController)`](/documentation/PaperKit/MarkupEditViewController/Delegate-swift.protocol/markupEditViewControllerInsertNewTextbox(_:))

Add a new textbox on top of the paper.

[`func markupEditViewController(MarkupEditViewController, insertNewLineWithStartMarker: Bool, endMarker: Bool)`](/documentation/PaperKit/MarkupEditViewController/Delegate-swift.protocol/markupEditViewController(_:insertNewLineWithStartMarker:endMarker:))

Add a new line on top of the paper.

[`func markupEditViewController(MarkupEditViewController, insertNewContents: PaperMarkup)`](/documentation/PaperKit/MarkupEditViewController/Delegate-swift.protocol/markupEditViewController(_:insertNewContents:))

Add new content on top of the paper.

## Relationships

### Conforming Types

[`PaperMarkupViewController`](/documentation/PaperKit/PaperMarkupViewController)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)