reers/retext
[简体中文](README_CN.md)
Overview
REText is a high-performance text framework built from the ground up in Swift, implemented based on MPITextKit. It provides advanced text layout, rendering, and interactive editing features with plans to incorporate additional capabilities from YYText and other leading text frameworks.
Requirements
- iOS 13.0+
- Xcode 16.0+
Installation
Swift Package Manager
dependencies: [
.package(url: "https://github.com/reers/REText.git", from: "0.1.2")
]CocoaPods
pod 'REText', '~> 0.1.2'Quick Start
import REText
let label = RELabel()
label.numberOfLines = 0
label.textVerticalAlignment = .top
label.font = UIFont.preferredFont(forTextStyle: .body)
label.text = text
label.textContainerInset = UIEdgeInsets(top: 8, left: 8, bottom: 8, right: 8)
label.isSelectable = trueRoadmap
Phase 1: MPITextKit totally Implementation ✅
Phase 2: YYText Feature Integration 🚧
Phase 3: YYText Bug Fixes 📋
License
REText is available under the MIT license. See the LICENSE file for more info.
Credits
- Inspired by MPITextKit
- Planning to integrate features from YYText
Note: REText is actively developed and APIs may change during early releases. Please check the changelog before updating versions.
Package Metadata
Repository: reers/retext
Default branch: main
README: README.md