<!--
{
  "availability" : [
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextInputClient/insert(_:replacementRange:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSTextInputClient(im)insertAdaptiveImageGlyph:replacementRange:"
  },
  "title" : "insert(_:replacementRange:)"
}
-->

# insert(_:replacementRange:)

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

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

## Parameters

`adaptiveImageGlyph`

The adaptive image to add to the text.

`replacementRange`

The text range at which to insert the image.

---

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)