https://github.com/noppefoxwolf/dawntext2
A powerful and lightweight Text rendering view instead SwiftUI.Text.
https://github.com/noppefoxwolf/dawntext2
ios swiftui textkit2
Last synced: 5 months ago
JSON representation
A powerful and lightweight Text rendering view instead SwiftUI.Text.
- Host: GitHub
- URL: https://github.com/noppefoxwolf/dawntext2
- Owner: noppefoxwolf
- Created: 2024-04-06T22:15:58.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-17T18:58:02.000Z (over 1 year ago)
- Last Synced: 2024-12-02T05:26:58.109Z (over 1 year ago)
- Topics: ios, swiftui, textkit2
- Language: Swift
- Homepage:
- Size: 88.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DAWNText2
A powerful and lightweight Text rendering view instead SwiftUI.Text.
# Install
```swift
let package = Package(
dependencies: [
.package(url: "<# URL #>", from: "0.0.x")
],
)
```
# Usage
## UIKit
```swift
let textView = DAWNTextView()
textView.attributedText = attributedText
```
## SwiftUI
```swift
DAWNText2.TextView(attributedText)
```
# Features
- a12y
- UITraitCollection
- UIColor.tintColor
- NSTextAttachmentViewProvider
||DAWNTextView|UITextView|UILabel|SwiftUI.Text|
|---|---|---|---|---|
|View Provider|⭕️|⭕️|❌|❌|
|Self-sizing|⭕️|❌|⭕️|⭕️|
|link only selectable|⭕️|❌|⭕️|⭕️|
# TODO
- [ ] TBD
# Required
- Swift 5.10
- iOS 17.0+
# Apps Using
# License
DAWNText2 is available under the MIT license. See the LICENSE file for more info.