Latest 0.4.0
Homepage https://github.com/devxoul/RxCodable
License MIT
Platforms ios 8.0, osx 10.11, tvos 9.0, watchos 2.0
Authors

Swift
CocoaPods
Build Status
codecov

RxSwift wrapper for Codable.

At a Glance

struct User: Codable {
  var name: String
}

// Data -> User
Observable<Data>.just(jsonData).map(User.self)
Single<Data>.just(jsonData).map(User.self)
Maybe<Data>.just(jsonData).map(User.self)

// String -> User
Observable<String>.just(jsonString).map(User.self)
Single<String>.just(jsonString).map(User.self)
Maybe<String>.just(jsonString).map(User.self)

Dependencies

Installation

Contributing

Any discussions and pull requests are welcomed 💖

To create a Xcode project:

$ swift package generate-xcodeproj

License

RxCodable is under MIT license. See the LICENSE for more info.

Latest podspec

{
    "name": "RxCodable",
    "version": "0.4.0",
    "summary": "RxSwift wrapper for Codable",
    "homepage": "https://github.com/devxoul/RxCodable",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Suyeol Jeon": "[email protected]"
    },
    "source": {
        "git": "https://github.com/devxoul/RxCodable.git",
        "tag": "0.4.0"
    },
    "platforms": {
        "ios": "8.0",
        "osx": "10.11",
        "tvos": "9.0",
        "watchos": "2.0"
    },
    "default_subspecs": "Core",
    "subspecs": [
        {
            "name": "Core",
            "source_files": "Sources/RxCodable/**/*.swift",
            "frameworks": "Foundation",
            "dependencies": {
                "RxSwift": [
                    ">= 4.0"
                ]
            }
        }
    ]
}

Pin It on Pinterest

Share This