---
title: "insert(_:replacementRange:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextinput/insert(_:replacementrange:)"
---

# insert(_:replacementRange:)

Inserts an adaptive image into the text at the specifed location.

## Declaration

```swift
optional func insert(_ adaptiveImageGlyph: NSAdaptiveImageGlyph, replacementRange: UITextRange)
```

## Parameters

- `adaptiveImageGlyph`: The adaptive image to add to the text.
- `replacementRange`: The text range at which to insert the image.

## See Also

### Supporting adaptive images

- [supportsAdaptiveImageGlyph](uikit/uitextinput/supportsadaptiveimageglyph.md)
