SwiftRichString
SwiftyMarkdown
Our great sponsors
SwiftRichString | SwiftyMarkdown | |
---|---|---|
1 | 1 | |
3,053 | 1,591 | |
- | - | |
0.0 | 0.0 | |
9 months ago | 19 days ago | |
Swift | Swift | |
MIT License | MIT License |
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.
SwiftRichString
-
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.
SwiftyMarkdown
-
SwiftUI Markdown question
That being said there are some great libraries such as Down and SwiftyMarkdown have awesome markdown parsing. The only issue is that you may need to fallback to UIKit for some of the features.
What are some alternatives?
Atributika - Convert text with HTML tags, links, hashtags, mentions into NSAttributedString. Make them clickable with UILabel drop-in replacement.
SwiftDown - 📦 A themable markdown editor component for your SwiftUI apps.
BonMot - Beautiful, easy attributed strings in Swift
MarkdownKit - A simple and customizable Markdown Parser for Swift
TextAttributes - An easier way to compose attributed strings
SwiftyAttributes - A Swifty API for attributed strings
Apodimark
SZMentions - Library to help handle mentions
TwitterTextEditor - A standalone, flexible API that provides a full-featured rich text editor for iOS applications.
YYText - Powerful text framework for iOS to display and edit rich text.
Input Mask - User input masking library repo.
DTRichTextEditor - A rich-text editor for iOS