A Swift library to build NSAttributedString from HTML-like text with clickable tags, links, hashtags, and mentions.
Atributika is a Swift library that converts text with HTML-like tags, links, hashtags, mentions, and phone numbers into NSAttributedString. It solves the complexity of building dynamic attributed strings at runtime, especially for localized content, by providing a simple, declarative API. The library also includes drop-in UILabel and UITextView replacements that support clickable and highlightable links with full accessibility.
iOS, tvOS, watchOS, and macOS developers who need to display richly formatted text with interactive elements like clickable links, hashtags, or mentions in their UIKit or SwiftUI apps.
Developers choose Atributika for its easy-to-use, chainable API that simplifies NSAttributedString creation, its robust HTML parser, and its standalone views with built-in link interactivity and accessibility support, avoiding the boilerplate of manual attributed string handling.
Convert text with HTML tags, links, hashtags, mentions into NSAttributedString. Make them clickable with UILabel drop-in replacement.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Allows easy combination of multiple styling operations in a clean, expressive way, as shown in the 'Uber String' example where tags, mentions, and links are styled together.
Uses a custom parser optimized for performance, with V5 improvements fixing bugs and better handling edge cases like special HTML symbols.
Provides drop-in AttributedLabel and AttributedTextView with clickable, highlightable links and built-in accessibility, simplifying interactive text implementation without boilerplate code.
Supports styling for tags, hashtags, mentions, links, phone numbers, and regex patterns, covering a wide range of social media and dynamic text elements in one library.
AttributedLabel and AttributedTextView are available only on iOS, so apps targeting tvOS, watchOS, or macOS need alternative solutions for interactive text, limiting cross-platform use.
The major rewrite introduced incompatible changes requiring manual migration, which can be a significant hurdle for existing projects upgrading from older versions.
Parses HTML-like tags but doesn't support full HTML or CSS, so complex web content may not render correctly without additional parsing or styling work.