Update README.md
A Swift Package that enable nested subscript on Dictionary.
subscript
Dictionary
import DictionaryNestedSubscript let dictionary: [String: Any] = [ "countries": [ "japan": [ "capital": [ "name": "tokyo", "lat": "35.6895", "lon": "139.6917" ], "language": "japanese" ] ] ] dictionary[jsonDict: "countries"]?[jsonDict: "japan"]?[jsonDict: "capital"]?["name"] // "tokyo"
Xcode > File > Swift Packages > Add Package Dependency...
https://github.com/vinhnx/DictionaryNestedSubscript
Choose Package Repository
Next
Guide
Inspiration
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
DictionaryNestedSubscript
A Swift Package that enable nested
subscript
onDictionary
.Usage
Integration (requires Xcode 11+)
Xcode > File > Swift Packages > Add Package Dependency...
https://github.com/vinhnx/DictionaryNestedSubscript
underChoose Package Repository
fieldNext
for Xcode to resolve the package.References
Guide
Inspiration