blob: 36ec171cb657d0875e9be6ec59998d95ea801726 [file] [log] [blame]
{
"name": "NSAttributedStringBuilder",
"version": "0.1",
"summary": "Locatable is a micro-framework that exposes a Function Builder to compose attributed strings",
"description": "NSAttributedStringBuilder is a Swift micro framework that leverages Function Builders to implement syntactic sugar that lets you intuitively compose attributed strings.\n\nInstead of writing:\n\nlet attributedString = NSMutableAttributedString(string: \"Hello\", attributes: [.font: UIFont.systemFont(ofSize: 24), .foregroundColor: UIColor.red])\nattributedString(NSAttributedString(string: \" world!\", attributes: [.font: UIFont.systemFont(ofSize: 20), .foregroundColor: UIColor.orange]))\n\nYou can now write:\n\nlet attributedString = NSAttributedString.composing {\n NSAttributedString(string: \"Hello\", attributes: [.font: UIFont.systemFont(ofSize: 24), .foregroundColor: UIColor.red])\n NSAttributedString(string: \" world!\", attributes: [.font: UIFont.systemFont(ofSize: 20), .foregroundColor: UIColor.orange])\n}",
"homepage": "https://github.com/vincent-pradeilles/NSAttributedStringBuilder",
"license": {
"type": "MIT",
"file": "LICENSE"
},
"authors": {
"Vincent Pradeilles": "vin.pradeilles+NSAttributedStringBuilder@gmail.com"
},
"source": {
"git": "https://github.com/vincent-pradeilles/NSAttributedStringBuilder.git",
"tag": "0.1"
},
"swift_versions": "5.1",
"platforms": {
"ios": "9.0"
},
"frameworks": "Foundation",
"source_files": "NSAttributedStringBuilder/**/*.swift",
"swift_version": "5.1"
}