<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextDocumentProxy/adjustTextPosition(byCharacterOffset:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITextDocumentProxy(im)adjustTextPositionByCharacterOffset:"
  },
  "title" : "adjustTextPosition(byCharacterOffset:)"
}
-->

# adjustTextPosition(byCharacterOffset:)

Moves the insertion point forward or backward in the current text input object.

```
func adjustTextPosition(byCharacterOffset offset: Int)
```

## Parameters

`offset`

The number of characters to adjust the insertion point by. A positive value moves the insertion point forward (according to the text storage direction for the current language). A negative value moves the insertion point backward.

## Discussion

---

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)