UITextViewExtras for iOS

Collection of convenience methods for finding the paths and locations of text in UITextView.

  • Calculate the bounding path (or CGRect) of a character, word, sentence, line or paragraph at given point, index, or range.

  • Hit test a substring range.

  • Find the closest character index to a point

  • Find the nearest range for character,word,line,sentence or paragraph at given point.

  • Calculate the substring range bound by a given CGRect.

** and a few others...

Currently used in Drag Pad and Fire Type.

Sponsored with ❤️ by Instabug
Instabug: Understand how your app is doing with real-time contextual insights from your users

Get all the logs you need and fix bugs, crashes, and other issues in minutes instead of days. With Instabug you will automatically receive device data, network logs, and reproduction steps with every bug and crash report. It only takes a line of code to integrate and is perfect for teams that are now working remotely. See more detailed features comparison and try Instabug for free here.