Latest 1.0.1
Homepage https://github.com/muukii/TextAttributesUtil
License MIT
Platforms ios 8.0
Dependencies TextAttributes
Authors

CI Status
Version
License
Platform
Carthage compatible

Quickly create NSAttributedString with TextAttributes

Usage

Before

let attributes = TextAttributes()
                    .font(UIFont.systemFontOfSize(14))
                    .alignment(.Center)
                    .foregroundColor(UIColor(white: 0.7, alpha: 1))

let attributedText = NSAttributedString(string: "Hello, NSAttributedText", attributes: attributes)

After

let attributedText = "Hello, NSAttributedText"
    .attributed {
        TextAttributes()
            .font(UIFont.systemFontOfSize(14))
            .alignment(.Center)
            .foregroundColor(UIColor(white: 0.7, alpha: 1))
    }

Installation

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

pod "TextAttributesUtil"

Author

muukii, [email protected]

License

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

Latest podspec

{
    "name": "TextAttributesUtil",
    "version": "1.0.1",
    "summary": "Quickly create NSAttributedString with TextAttributes",
    "description": "Quickly create NSAttributedString with TextAttributesnTextAttributes is awesome library.",
    "homepage": "https://github.com/muukii/TextAttributesUtil",
    "license": "MIT",
    "authors": {
        "muukii": "[email protected]"
    },
    "source": {
        "git": "https://github.com/muukii/TextAttributesUtil.git",
        "tag": "1.0.1"
    },
    "social_media_url": "https://twitter.com/muukii0803",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "TextAttributesUtil/Classes/**/*",
    "dependencies": {
        "TextAttributes": []
    }
}

Pin It on Pinterest

Share This