Swiftpack.co - Package - devxoul/RxCodable

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)

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.

Github

link
Stars: 54
Help us keep the lights on

Dependencies

Used By

Total: 0

Releases

0.3.0 - Oct 10, 2017

  • Drop Moya dependency because Moya now supports an extension for Decodable. (https://github.com/Moya/Moya/pull/1335)

0.2.0 - Oct 10, 2017

  • Make map() receive JSONDecoder as a parameter.

0.1.0 - Sep 24, 2017

Hello, world 👋