**RichEditorView has been archived. I do not plan on making updates to it.** This project was needed for an app I was working on in the mid 2010's. I haven't needed it for a long time, and don't expect to need it in the future. You shouldn't either. This project depends on [UIWebView](https://developer.apple.com/documentation/uikit/uiwebview) which was [deprecated in iOS 12](https://developer.apple.com/documentation/webkit/replacing_uiwebview_in_your_app). While it's possible to change it to use [WKWebView](https://developer.apple.com/documentation/webkit/wkwebview), it's not a straightforward find-and-replace. For example, some methods that used to be synchronous are now asynchronous. There are [forks](https://github.com/cjwirth/RichEditorView/forks) that have made the migration. I would encourage you to check those out and see if one suits your needs. RichEditorView -------------- [](./LICENSE.md) [](http://cocoapods.org/pods/RichEditorView) [](https://github.com/Carthage/Carthage) RichEditorView is a simple, modular, drop-in UIView subclass for Rich Text Editing. Written in Swift 4 Supports iOS 8+ through Cocoapods or Carthage. - _Looking for Android? Check out_ [wasabeef/richeditor-android](https://github.com/wasabeef/richeditor-android) Seen in Action --------------  Just clone the project and open `RichEditorViewSample/RichEditorViewSample.xcworkspace` in Xcode. Features --------  - [x] Bold - [x] Italic - [x] Subscript - [x] Superscript - [x] Strikethrough - [x] Underline - [x] Justify Left - [x] Justify Center - [x] Justify Right - [x] Heading 1 - [x] Heading 2 - [x] Heading 3 - [x] Heading 4 - [x] Heading 5 - [x] Heading 6 - [x] Undo - [x] Redo - [x] Ordered List - [x] Unordered List - [x] Indent - [x] Outdent - [x] Insert Image - [x] Insert Link - [x] Text Color - [x] Text Background Color Installation ------------ #### Cocoapods If you have Cocoapods installed, you can use Cocoapods to include `RichEditorView` into your project. Add the following to your `Podfile`: ``` pod "RichEditorView" use_frameworks! ``` Note: the `use_frameworks!` is required for pods made in Swift. #### Carthage Add the following to your `Cartfile`: ``` github 'cjwirth/RichEditorView' ``` Using RichEditorView -------------------- `RichEditorView` makes no assumptions about how you want to use it in your app. It is a plain `UIView` subclass, so you are free to use it wherever, however you want. Most basic use: ``` editor = RichEditorView(frame: self.view.bounds) editor.html = "
@cjwirth
Acknowledgements
----------------
* [wasabeef/richeditor-android](https://github.com/wasabeef/richeditor-android) - Android version of this library (Apache v2)
* [nnhubbard/ZSSRichTextEditor](https://github.com/nnhubbard/ZSSRichTextEditor) - Inspiration and Icons (MIT)
License
-------
RichEditorView is released under the BSD 3-Clause License. See [LICENSE.md](./LICENSE.md) for details.