TextAttributes
An easier way to compose attributed strings (by delba)
SwiftRichString
👩🎨 Elegant Attributed String composition in Swift sauce (by malcommac)
TextAttributes | SwiftRichString | |
---|---|---|
- | 1 | |
2,193 | 3,148 | |
0.0% | 0.0% | |
0.0 | 0.0 | |
almost 6 years ago | about 2 years ago | |
Swift | Swift | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
TextAttributes
Posts with mentions or reviews of TextAttributes.
We have used some of these posts to build our list of alternatives
and similar projects.
We haven't tracked posts mentioning TextAttributes yet.
Tracking mentions began in Dec 2020.
SwiftRichString
Posts with mentions or reviews of SwiftRichString.
We have used some of these posts to build our list of alternatives
and similar projects.
-
XMLText Library: SwiftUI Text from styled XML
For styling strings in my app, I have been using SwiftRichString library for UIKit with a UIViewRepresentable of UILabel, however I started having lots of problems with UILabel's layout when embedded in SwiftUI. So I decided to use parts of SwiftRichString to create a SwiftUI version of it. XMLText doesn't support links and images due to SwiftUI limitations, but hopefully those will come after SwiftUI improvements in the future.
What are some alternatives?
When comparing TextAttributes and SwiftRichString you can also consider the following projects:
Atributika - Convert text with HTML tags, links, hashtags, mentions into NSAttributedString. Make them clickable with UILabel drop-in replacement.
BonMot - Beautiful, easy attributed strings in Swift
Veneer - A simple library for building attributed strings, for a more civilized age.
SwiftyMarkdown - Converts Markdown files and strings into NSAttributedStrings with lots of customisation options.