blob: 40a951f7797c30ff07ea98235897c2ec7e274aff [file] [log] [blame]
{
"name": "StyleDecorator",
"version": "0.1.0",
"summary": "Kindly styling of text through decorating string",
"description": "Design string simply by linking attributes to needed part.\n`\"Style\"~d1~\"Decorator\"~d2~\"!\"`\n\nExample:\n```swift\nlet a = Decorator(attributes: Attributes().foregroundColor(.black))\nlet b = Decorator(attributes: Attributes().foregroundColor(.white))\nlet c = Decorator(attributes: Attributes().foregroundColor(.gray))\n\nlet decorated = \"We\"~a~\"Are\"~b~\"Pinto\"~c\nlabel.attributedText = NSAttributedString(decorator: decoratedText)\n```\n\nString can be designed dynamically:\n```swift\nlet titleText = \"We\"~b~\"Are\"~c~\"Pinto\"~d\nlet decoratedText = \"Decorate your string easy\"~a~\"\n\n\"~titleText~\"\n\n\"~\"Ideas\"~e~\"\n\"~\"Thinking up smart ideas\"~f~\"\n\n\nwith default attributes\"\n\nlet defaultAttributes = Attributes().font(UIFont.systemFont(ofSize: 15, weight: UIFontWeightBlack))\n .alignment(.center).raw\n\nlabel.attributedText = NSAttributedString(decorator: decoratedText, attributes: defaultAttributes)\n```",
"homepage": "https://github.com/dimpiax/StyleDecorator",
"screenshots": "https://github.com/dimpiax/StyleDecorator/raw/master/Example/StyleDecorator/Images.xcassets/thumbnail.imageset/thumbnail.png",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"Dima Pilipenko": "dimpiax@gmail.com"
},
"source": {
"git": "https://github.com/dimpiax/StyleDecorator.git",
"tag": "0.1.0"
},
"social_media_url": "https://twitter.com/dimpiax",
"platforms": {
"ios": "8.0"
},
"source_files": "StyleDecorator/Classes/**/*",
"pushed_with_swift_version": "3.0"
}