A modern Swift implementation of MPITextKit with enhanced text rendering and editing capabilities for iOS platforms.
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.
- iOS 13.0+
- Xcode 16.0+
dependencies: [
.package(url: "https://github.com/reers/REText.git", from: "0.1.0")
]
pod 'REText', '~> 0.1.0'
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 = true
REText is available under the MIT license. See the LICENSE file for more info.
- 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.