[![CI Status](http://img.shields.io/travis/Chanricle King/NCKTextView.svg?style=flat)](https://travis-ci.org/Chanricle King/NCKTextView)
NCKTextView is a very high-performance rich editor. Because it's a subclass of UITextView, not UIWebView. All of code by TextKit framework.
- Bold Text
- Italic Text
- Unordered List
- Ordered List
- List auto indentation
- Undo and Redo
- Rich Text Copy & Paste
Not extends any class, not EditorController and so on...
You can embed NCKTextView to anywhere that you want.
// Init TextView
let textView = NCKTextView(frame: self.view.bounds, textContainer: NSTextContainer())
// If you want to use built-in toolbar, call it.
textView.enableToolbar()
// add to View
self.view.addSubview(textView)
Done.
Some feature I use delegate method, so NCKTextView is delegate self. And provide another delegate property named nck_delegate
public var nck_delegate: UITextViewDelegate?
To run the example project, clone the repo, and run pod install
from the Example directory first.
Xcode 7.3 +
Swift 2.2 +
###Stable source code
git clone -b stable https://github.com/chanricle/NCKTextView.git
###Cocoapods
NCKTextView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "NCKTextView"
Chanricle King, [email protected]
NCKTextView is available under the MIT license. See the LICENSE file for more info.