<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/PaperMarkupViewController/suggestedFrameForInserting(contentInFrame:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit0A20MarkupViewControllerC26suggestedFrameForInserting09contentInG0So6CGRectVAG_tF"
  },
  "title" : "suggestedFrameForInserting(contentInFrame:)"
}
-->

# suggestedFrameForInserting(contentInFrame:)

Returns the suggested frame for inserting shapes and other content.

```
@MainActor @preconcurrency func suggestedFrameForInserting(contentInFrame frame: CGRect) -> CGRect
```

## Parameters

`frame`

The frame of the content you want to insert.

## Return Value

The suggested frame for the content. Use this value to transform a `PaperMarkup` before inserting it.

## Discussion

```swift
var shapeFrame = CGRect(x: 100, y: 100, width: 300, height: 300)
// Get the default frame for inserting, and insert the shape there.
let suggestedFrame = paperViewController.suggestedFrameForInserting(contentInFrame: shapeFrame)
paperViewController.markup.insertNewShape(configuration: shapeConfiguration, frame: suggestedFrame)
```

---

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)