marinehero / Crotalus

Elegant approach to create AttributedString in swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crotalus

CI Status Version License Platform

Crotalus is an convenient and fast approach to create AttributedString in Swift. This library is inspired by colorize which is a ruby gem colorize string.

If you would like to use chainable syntax in Objective-C use Typeset instead.

With Crotalus

With Cratalus, you can create attributed string much more easier than other way.

"Hello".crotalus.color(0xff0000).match("He").color(0x00ff00).all.fontName("Sanrif").string

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

Crotalus is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Crotalus"

Author

Draveness, stark.draven@gmail.com

License

Crotalus is available under the MIT license. See the LICENSE file for more info.

About

Elegant approach to create AttributedString in swift

License:MIT License


Languages

Language:Swift 93.3%Language:Ruby 6.7%