devxoul/RxCodable
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
- Using CocoaPods:
``ruby pod 'RxCodable' ``
Contributing
Any discussions and pull requests are welcomed 💖
To create a Xcode project:
$ swift package generate-xcodeprojLicense
RxCodable is under MIT license. See the LICENSE for more info.
Package Metadata
Repository: devxoul/RxCodable
Stars: 113
Forks: 6
Open issues: 1
Default branch: master
Primary language: swift
License: MIT
Topics: codable, moya, rxswift
README: README.md