UITextViewExtras for iOS

Download Source

Powered by Appetize.io.

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.