<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/BETextInput/insertTextPlaceholder(size:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:objc(pl)BETextInput(im)insertTextPlaceholderWithSize:completionHandler:"
  },
  "title" : "insertTextPlaceholder(size:completionHandler:)"
}
-->

# insertTextPlaceholder(size:completionHandler:)

Inserts a placeholder object to reserve visual space during text input.

```
func insertTextPlaceholder(size: CGSize, completionHandler: @escaping @Sendable (UITextPlaceholder) -> Void)
```

```
func insertTextPlaceholder(size: CGSize) async -> UITextPlaceholder
```

## Discussion

If `size.height` is less than or equal to zero, then the placeholder is inline and line height. If `size.height` is greater than zero, then the placeholder is a paragraph of height `size.height`.

---

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)