All Projects → draveness → Crotalus

draveness / Crotalus

Licence: MIT license
Elegant approach to create AttributedString in swift

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

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, [email protected]

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].