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.
RichTextKit is supported by and released with permission from Oribi and used in OribiWriter, which is out on iOS and soon on macOS.
RichTextKit supports iOS 14
, macOS 12
, tvOS 14
and watchOS 8
.
RichTextKit can be installed with the Swift Package Manager:
https://github.com/danielsaidi/RichTextKit.git
or with CocoaPods:
pod RichTextKit
The online documentation has a getting started guide to help you get started with RichTextKit.
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 Demo/Demo.xcodeproj
.
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:
- E-mail: daniel.saidi@gmail.com
- Twitter: @danielsaidi
- Web site: danielsaidi.com
RichTextKit is available under the MIT license. See the LICENSE file for more info.