RichTextKit is a Swift-based library that lets you work with rich text in UIKit, AppKit, and SwiftUI.
RIchTextKit supports changing styles (bold, italic, underline), font, font sizes, colors, alignment, etc. You can also drag and copy in images if you use a data format that allows it.
tvOS 14 and
RichTextKit can be installed with the Swift Package Manager:
or with CocoaPods:
The online documentation contains more information, code examples, etc., and makes it easy to overview the various parts of the library.
This project contains a demo app that lets you explore RichTextKit on iOS and macOS. To run it, just open and run
You can sponsor this project on GitHub Sponsors or get in touch for paid support.
Feel free to reach out if you have questions or if you want to contribute in any way:
RichTextKit is available under the MIT license. See the LICENSE file for more info.