CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

HighlightTextView 0.6.0

HighlightTextView 0.6.0

Maintained by yusayusa.



  • By
  • yusayusa

HighlightTextView

Carthage compatible

Requirements

Swift 3.0 iOS 8.0+

Installation

Carthage

HighlightTextView is available through Carthage. To install it, simply add the following line to your Cartfile:

github "yusayusa/HighlightTextView"

CocoaPods

TODO

Usage

let textView: UITextView

// set maximum character limit and background color, minimum character limit and background color

textView.setHighlight(
  range: Range(uncheckedBounds: (lower: 20, upper: 50)),
  minHighlightColor: UIColor.gray,
  maxHighlightColor: UIColor.red
)

License

HighlightTextView is released under the MIT license. Go read the LICENSE file for more information.