Swift Package Index

RxCodable

https://github.com/devxoul/RxCodable.git

RxSwift wrapper for Codable


Compatibility

  • 1.0.0 and master
    5.3
    5.2
    5.1
    5.0
    4.2
  • 1.0.0 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS

RxCodable

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)

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.