Skip to content

JohnEstropia/HighlightTextView

 
 

Repository files navigation

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 condition (maximum character limit and background color, minimum character limit and background color)

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

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 95.8%
  • Objective-C 4.2%