Latest 0.0.8
Homepage https://github.com/rollmind/Attributes
License MIT
Platforms ios 9.0
Authors

NSAttributedString utility wrapper library

Getting Started

Using

let hello: NSAttributedString = "Hello".attributes.with(attributes: .foreground(.red) + .background(.yellow))
let hello2: NSAttributedString = "Hello".attributes.foreground(.red).background(.yellow)
let hello3: NSAttributedString = "Hello".attributes.foreground(.red).background(.black)
let hello4: NSAttributedString = "Hello".attributes.font(.systemFont(ofSize: 18, weight: .medium))
let hello5: NSAttributedString = "Hello".attributes.strikethrough(.styleSingle)

Installing

Cocoapods

target 'MyApp' do
    pod 'Attributes'
end

Then run a pod install inside your terminal, or from CocoaPods.app.

Authors

  • Kwanghoon Choiindividualrollmind

License

This project is licensed under the MIT License – see the LICENSE file for details

Acknowledgments

  • Hat tip to anyone who’s code was used
  • Inspiration
  • etc

Latest podspec

{
    "name": "Attributes",
    "version": "0.0.8",
    "summary": "NSAttributedString wrapper and utility library",
    "description": "NSAttributedString wrapper and utility library prototype",
    "homepage": "https://github.com/rollmind/Attributes",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Kwanghoon Choi": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/rollmind/Attributes.git",
        "tag": "0.0.8"
    },
    "source_files": [
        "Attributes",
        "Attributes/**/*.{h,m,swift}"
    ],
    "ios": {
        "frameworks": "UIKit"
    },
    "pushed_with_swift_version": "4"
}

Pin It on Pinterest

Share This