<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextInput/characterRange(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITextInput(im)characterRangeAtPoint:"
  },
  "title" : "characterRange(at:)"
}
-->

# characterRange(at:)

Returns the character or range of characters that is at a specified point in a document.

```
func characterRange(at point: CGPoint) -> UITextRange?
```

## Parameters

`point`

A point in the view that is drawing a document’s text.

## Return Value

An object representing a range that encloses a character (or characters) at `point`.

## 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)