2 "name": "NSAttributedStringBuilder",
4 "summary": "Locatable is a micro-framework that exposes a Function Builder to compose attributed strings",
5 "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}",
6 "homepage": "https://github.com/vincent-pradeilles/NSAttributedStringBuilder",
12 "Vincent Pradeilles": "vin.pradeilles+NSAttributedStringBuilder@gmail.com"
15 "git": "https://github.com/vincent-pradeilles/NSAttributedStringBuilder.git",
18 "swift_versions": "5.1",
22 "frameworks": "Foundation",
23 "source_files": "NSAttributedStringBuilder/**/*.swift",
24 "swift_version": "5.1"