Atributika - Convert text with HTML tags, links, hashtags, mentions into NSAttributedString

  •        23

NSAttributedString is really powerful but still a low level API which requires a lot of work to setup things. It is especially painful if string is template and real content is known only in runtime. If you are dealing with localizations, it is also not easy to build NSAttributedString. Yeah, that's much better. Atributika is easy, declarative, flexible and covers all the raw edges for you.

https://github.com/psharanda/Atributika

Tags
Implementation
License
Platform

   




Related Projects

Attributed - µframework for Attributed strings.

  •    Swift

µframework for Attributed strings. Attributed aims to be a drop in replacement to the current programming interface of NSAttributedString. The existing interface to using attributed strings has a few flaws, namely if you dont know the Key and type of value needed to set a certain attribute, you have spend time checking documentation or the reading the comments for NSAttributedString. Another concern is safety, passing a dictionary of type [String: Any] to the constructor of NSAttributedString is a potential crash at runtime waiting to happen.

SJAttributesFactory - Simplify operation NSAttributedString, make writing easier

  •    Objective-C

Simplify operation NSAttributedString, make writing easier. Attributes String Editing Factory. iOS 富文本编辑, 让代码更清晰. 文本编辑, 高度计算, 正则匹配等待... 简便操作, 让你爽到爆!

Typeset - Deal with AttributedString efficiently

  •    Objective-C

All the method for typeset returns a self object to chaining itself. call typeset method first and call string at last returns a NSAttributedString.

AttributedMarkdown - Native Markdown Parsing to NSAttributedString on iOS

  •    Objective-C

Markdown is intended to be as easy-to-read and easy-to-write as is feasible. This library takes Markdown formatted text and turns it into an NSAttributedString, suitable for rendering in native UIKit components on iOS 6 (UITextView, UILabel, etc).

OHAttributedLabel - UILabel that supports NSAttributedString

  •    Objective-C

UILabel that supports NSAttributedString


NerdyUI - An easy way to create and layout UI components for iOS.

  •    Objective-C

An easy way to create and layout UI components for iOS 8 and above. There is also a Swift version available. You can convert nearly everything to NSString by using Str() macro. Similarly, you can log variables using Log() macro.

StyledTextKit - Declarative building and fast rendering attributed string library.

  •    Swift

StyledTextKit is a declarative attributed string library for fast rendering and easy string building. It serves as a simple replacement to NSAttributedString and UILabel for background-thread sizing and bitmap caching. Create a StyledTextRenderer for sizing and rendering text by initializing it with a StyledTextString and a UIContentSizeCategory.

MarqueeLabel - A drop-in replacement for UILabel, which automatically adds a scrolling marquee effect when the label's text will not fit inside the specified frame

  •    Objective-C

MarqueeLabel is a UILabel subclass adds a scrolling marquee effect when the text of the label outgrows the available width. The label scrolling direction and speed/rate can be specified as well. All standard UILabel properties (where it makes sense) are available in MarqueeLabel, with the intent of MarqueeLabel behaving just like a UILabel. MarqueeLabel has subspecs for both Objective-C and Swift! Currently, Objective-C is the default subspec.

SwiftRichString - Elegant & Painless Attributed Strings Management Library in Swift

  •    Swift

SwiftRichString is a lightweight library wich allows you to simplify your work with attributed strings in UIKit. It provides convenient way to create and manage string with complex attributes, render tag-based string and manipulate styles at specified indexes. And, best of all, it's fully compatible with unicode (who don't love emoji?).

DTCoreText - Methods to allow using HTML code with CoreText

  •    Objective-C

This project aims to duplicate the methods present on Mac OSX which allow creation of NSAttributedString from HTML code on iOS. This is useful for drawing simple rich text like any HTML document without having to use a UIWebView. For text selection and highlighting (as you might need for an Editor or Reader) there is the commercial DTRichTextEditor component which can be purchased in the Cocoanetics Parts Store.

AttributedLabel - Easy to use, fast, and higher performance than UILabel.

  •    Swift

This is a better performance than UILabel and can be used like a standard UI component. Also, Easier to use than UILabel. Since UIView is inherited instead of UILabel, there is little wasteful processing. It uses the function of TextKit to draw characters.

MDHTMLLabel - :link: A lightweight class for rendering text containing HTML tags on iOS 6.0+

  •    Objective-C

MDHTMLLabel is a lightweight, easy to use replacement for UILabel which allows you to fully customize the appearence of the text using HTML (with a few added features thanks to CoreText), as well letting you handle whenever a user taps or holds down on link and automatically detect ones not wrapped in anchor tags. The recommended method of installation is to use CocoaPods which is a dependency manager for Objective-C, that automates and simplifies the process of using 3rd-party libraries in your projects.

AutoScrollLabel - Provides marquee like UILabel scrolling, think Music

  •    Objective-C

A UILabel with auto scrolling for text that may be clipped by the view. Provides edge fading, speed adjustment, scroll direction, etc. iOS 7, tvOS 9 and greater. For Non-ARC use v0.2.1.

MZTimerLabel - A handy class for iOS to use UILabel as a countdown timer or stopwatch just like in Apple Clock App

  •    Objective-C

MZTimerLabel is a UILabel subclass, which is a handy way to use UILabel as a countdown timer or stopwatch just like that in Apple Clock App with just 2 lines of code. MZTimerLabel also provides delegate method for you to define the action when the timer finished. Author: MineS Chan and awesome contributors.

BBCyclingLabel - iOS 5+ (ARC) UILabel clone that performs animated transitions when changing text

  •    Objective-C

iOS 5+ (ARC) UILabel clone that performs animated transitions when changing text

MarkupLabel - Adds basic HTML capabilities to UILabel

  •    Objective-C

This is a subset of my CoreTextToy (https://github.com/schwa/CoreTextToy) project extracted out into its own github repo. Specifically this code allows you to use (simple) HTML markup with UILabel.

CoreTextToy - iOS CoreText test app

  •    Objective-C

This codebase implements CCoreTextLabel, a UILabel style class that supports attributed strings and simple HTML. IMPORTANT: See https://github.com/schwa/MarkupLabel for a subset of this codebase that provides the same functionality for basic UILabels.

AttributedTextView - Easiest way to create an attributed UITextView (with support for multiple links and from html)

  •    Swift

Easiest way to create an attributed UITextView (with support for multiple links and html). In interfacebuilder put an UITextView on the canvas and set the base class to AttributedTextView and create a referencing outlet to the a property in your viewController. In the samples below we have called this property textView1. Always assign to the attributer property when you want to set something.

LTMorphingLabel - [EXPERIMENTAL] Graceful morphing effects for UILabel written in Swift.

  •    Swift

A morphing UILabel subclass written in Swift. The .Scale effect mimicked Apple's QuickType animation of iOS 8 in WWDC 2014. New morphing effects are available as Swift extensions. .Sparkle is built on top of QuartzCore.CAEmitterLayer. There's also a SpriteKit powered version here.