Atributika is an easy and painless way to build NSAttributedString. It is able to detect HTML-like tags, links, phone numbers, hashtags, any regex or even standard ios data detectors and style them with various attributes like font, color, etc. Atributika comes with drop-in label replacement AttributedLabel which is able to make any detection clickable. NSAttributedString is really powerful but still a low-level API that requires a lot of work to set up things. It is especially painful if the string is a template and real content is known only in runtime. If you are dealing with localizations, it is also not easy to build NSAttributedString. Operator to concatenate NSAttributedString with other attributed or regular strings. Works on iOS, tvOS, watchOS, macOS.

Features

  • Detect and style HTML-like tags using custom speedy parser
  • Detect and style hashtags and mentions
  • Detect and style links and phone numbers
  • Style whole string or just particular ranges
  • Clean and expressive API to build styles
  • Separate set of detection utils, in case you want to use just them

Project Samples

Project Activity

See All Activity >

Categories

HTML/XHTML

License

MIT License

Follow Atributika

Atributika Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Atributika!

Additional Project Details

Operating Systems

Mac

Programming Language

Swift

Related Categories

Swift HTML XHTML

Registered

2023-04-27