Latest 0.2.1
Homepage https://github.com/muukii/DecodeContext
License MIT
Platforms ios 8.0, tvos 9.2
Authors

CI Status
Version
License
Platform

Example

Define Context

extension String {
    static let decodeContext = DecodeContext<SwiftyJSON.JSON, String> { json in
        return json.string
    }
}

Decode

let id = try Decoder(String.decodeContext, json["id"]).get()

Requirements

Installation

DecodeContext is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "DecodeContext"

Author

muukii, [email protected]

License

DecodeContext is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "DecodeContext",
    "version": "0.2.1",
    "summary": "Swift <- (Any Source ex:JSON)",
    "homepage": "https://github.com/muukii/DecodeContext",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "muukii": "[email protected]"
    },
    "source": {
        "git": "https://github.com/muukii/DecodeContext.git",
        "tag": "0.2.1"
    },
    "social_media_url": "https://twitter.com/muukii0803",
    "platforms": {
        "ios": "8.0",
        "tvos": "9.2"
    },
    "source_files": "DecodeContext/Classes/**/*"
}

Pin It on Pinterest

Share This