Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ REText Public

A Swift implementation of YYText and MPITextKit

License

Notifications You must be signed in to change notification settings

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

AltStyle によって変換されたページ (->オリジナル) /