Latest 0.2.0
Homepage https://github.com/Draveness/Snake
License MIT
Platforms ios 8.0, requires ARC
Authors

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.

Latest podspec

{
    "name": "Snake",
    "version": "0.2.0",
    "summary": "Elegant approach to deal with AttributedString",
    "description": "This repo providing an elegant approach to manipulate attributed string in swift. It is extremely painful for us deal with attributed string during iOS development. And I would like to provide a repo like ruby-syntax to make it easier.",
    "homepage": "https://github.com/Draveness/Snake",
    "license": "MIT",
    "authors": {
        "Draveness": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Draveness/Snake.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "Snake": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This