<!--
{
  "availability" : [
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/MarkupToolbarViewController/Delegate-swift.protocol/markupToolbarViewController(_:insertNewShape:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit27MarkupToolbarViewControllerC8DelegateP06markupdeF0_14insertNewShapeyAC_AA0K13ConfigurationV0K0OtF"
  },
  "title" : "markupToolbarViewController(_:insertNewShape:)"
}
-->

# markupToolbarViewController(_:insertNewShape:)

Add a new shape on top of the paper.

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

## Parameters

`markupToolbarViewController`

The source of the action.

`type`

The type of shape.

---

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)