blob: cc58994d012541bbba6e03f8952285d24ad200e1 [file] [log] [blame]
{
"name": "DictUtils",
"version": "0.0.1",
"summary": "Adds bunch of extensions and operators that would make work with Dicitonaries easier.",
"description": "DictUtils\n====\n\nAdds bunch of extensions and operators that would make work with Dicitonaries easier. If you are working with JSON and don't want to use dependencies like SwiftyJSON and keep everything native, you can peacefully grab that little helper.\n\nRequirements\n----\n\n* Xcode 10+\n* Swift 4.0+\n* iOS 8.0+\n* tvOS 9.0+\n* macOS 10.10+\n* watchOS 2.0+\n\nInstall\n----\n\n#### Manually\n\n* Copy the `DictUtils.swift` file into your codebase.\n\n#### Cocoapods\n\n```\npod 'DictUtils'\n```\n\nExtensions\n-----\n\n* `+` and `+=` operators\n* Merges two dictionaries without hassle.\n\n* Typed, chainable subscripts\n* Get `int`, `string`, `bool`, `double`, `[String: Any]` and their array types.\n\n``` swift\nlet index = dataSource[int: \"index\"]\nlet name = dataSource[string: \"name\"]\nlet zipCode = dataSource[dict: \"users\"]?[0][dict: \"address\"]?[string: \"zip\"]\n```\n\n* Initialize a dictionary from a JSON string.\n\n```\nlet dict = [String: Any](json: response.string)\n```\n\n* Get pretty printed string with `dataSource.prettify()`.",
"homepage": "https://github.com/cemolcay/DictUtils",
"license": "MIT",
"authors": {
"Cem Olcay": "ccemolcay@gmail.com"
},
"platforms": {
"ios": "8.0",
"osx": "10.10",
"watchos": "2.0",
"tvos": "9.0"
},
"source": {
"git": "https://github.com/cemolcay/DictUtils.git",
"tag": "0.0.1"
},
"source_files": "DictUtils/Source/DictUtils.swift",
"requires_arc": true
}