https://github.com/rafiki270/ftcoretext
An open source Objective-C interface component that makes use of the CoreText framework to render static text content using a highly customisable markup syntax.
https://github.com/rafiki270/ftcoretext
coretext html ios objective-c swift
Last synced: 9 months ago
JSON representation
An open source Objective-C interface component that makes use of the CoreText framework to render static text content using a highly customisable markup syntax.
- Host: GitHub
- URL: https://github.com/rafiki270/ftcoretext
- Owner: rafiki270
- License: mit
- Created: 2011-08-18T13:34:55.000Z (almost 15 years ago)
- Default Branch: main
- Last Pushed: 2025-09-10T12:40:28.000Z (9 months ago)
- Last Synced: 2025-09-10T15:57:39.990Z (9 months ago)
- Topics: coretext, html, ios, objective-c, swift
- Language: Swift
- Homepage:
- Size: 2.73 MB
- Stars: 784
- Watchers: 44
- Forks: 119
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FTCoreText
Cross‑platform rich text rendering with lightweight markup for iOS (Swift) and Android (Kotlin). The same localized strings render identically on both platforms.
## Layout
- **iOS** (Swift/SPM + Tuist demo): `ios/` — see the [iOS guide](ios/README.md)
- **Android** (Kotlin/Gradle + sample): `android/` — see the [Android guide](android/README.md)
- Shared examples (texts/images used by both demos): `shared/`
## Install
- **iOS** (Swift Package Manager)
- Xcode → File → Add Packages… → use: `https://github.com/rafiki270/FTCoreText`
- Or in `Package.swift`:
```swift
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "YourApp",
dependencies: [
.package(url: "https://github.com/rafiki270/FTCoreText.git", from: "2.1.0")
],
targets: [
.target(name: "YourApp", dependencies: ["FTCoreText"])
]
)
```
- **Android** (Gradle)
- Open `android/` in Android Studio; the sample app already depends on the library module.
- For your own app, either depend on the local module during development:
```kotlin
// settings.gradle.kts
include(":ftcoretext")
// app/build.gradle.kts
dependencies { implementation(project(":ftcoretext")) }
```
…or (once published) add the Maven artifact:
```kotlin
repositories { mavenCentral() }
dependencies { implementation("io.liveui:ftcoretext-android:2.1.0") }
```
## Learn More
- **iOS** details (SPM usage, Tuist demo): [ios/README.md](ios/README.md)
- **Android** details (Gradle usage, sample app): [android/README.md](android/README.md)
## Screenshots
### iOS
### Android
## License
- MIT. See [LICENSE](LICENSE).