---
title: "insertTextPlaceholder(size:completionHandler:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/betextinput/inserttextplaceholder(size:completionhandler:)"
---

# insertTextPlaceholder(size:completionHandler:)

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

## Declaration

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

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

## Discussion

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.
