Latest 0.2.1
Homepage https://github.com/liujinlongxa/EasyAttributedString
License MIT
Platforms ios 8.0
Authors

EasyAttributedString

CI Status
Version
License
Platform

Example

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

How to use:

let text = """
We have not one, not two, but three exciting new books for you this season: Machine Learning by Tutorials, Push Notifications by Tutorials, and Advanced iOS App Architecture! We think you’ll really enjoy what we have planned for these books. Read on below to see what’s in store for you!
We have not one, not two, but three exciting new books for you this season: Machine Learning by Tutorials, Push Notifications by Tutorials, and Advanced iOS App Architecture! We think you’ll really enjoy what we have planned for these books. Read on below to see what’s in store for you!
"""
label.attributedText = text.eas
    .font(UIFont.systemFont(ofSize: 18))
    .foregroundColor(UIColor.red)
    .backgroundColor(UIColor.green)
    .ligature(0)
    .kern(2)
    .lineSpacing(5, range: NSRange(location: 0, length: 20))
    .paragraphSpacing(10)
    .alignment(.center)
    .headIndent(10, range: NSRange(location: 0, length: 10))
    .attributedString

Requirements

Installation

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

pod 'JLEasyAttributedString'

Author

liujinlongxa, [email protected]

License

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

Latest podspec

{
    "name": "JLEasyAttributedString",
    "version": "0.2.1",
    "summary": "An easy way to use NSAttributedString",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/liujinlongxa/EasyAttributedString",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "liujinlongxa": "[email protected]"
    },
    "source": {
        "git": "https://github.com/liujinlongxa/EasyAttributedString.git",
        "tag": "0.2.1"
    },
    "swift_version": "4.2",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "EasyAttributedString/Classes/**/*"
}

Pin It on Pinterest

Share This