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 Cratalus, you can create attributed string much more easier than other way.
"Hello".crotalus.color(0xff0000).match("He").color(0x00ff00).all.fontName("Sanrif").string
To run the example project, clone the repo, and run pod install
from the Example directory first.
Crotalus is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Crotalus"
Draveness, stark.draven@gmail.com
Crotalus is available under the MIT license. See the LICENSE file for more info.