Skip to content

reers/REText

Repository files navigation

简体中文

REText

A modern Swift implementation of MPITextKit with enhanced text rendering and editing capabilities for iOS platforms.

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.0")
]

CocoaPods

pod 'REText', '~> 0.1.0'

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 = true

Roadmap

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


Note: REText is actively developed and APIs may change during early releases. Please check the changelog before updating versions.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published