Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devxoul/RxCodable
RxSwift wrapper for Codable
https://github.com/devxoul/RxCodable
codable moya rxswift
Last synced: about 2 months ago
JSON representation
RxSwift wrapper for Codable
- Host: GitHub
- URL: https://github.com/devxoul/RxCodable
- Owner: devxoul
- License: mit
- Created: 2017-09-24T18:12:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-15T05:39:09.000Z (over 5 years ago)
- Last Synced: 2024-11-10T02:13:32.963Z (2 months ago)
- Topics: codable, moya, rxswift
- Language: Swift
- Size: 15.6 KB
- Stars: 114
- Watchers: 5
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rxswift - RxCodable
README
# RxCodable
![Swift](https://img.shields.io/badge/Swift-5.0-orange.svg)
[![CocoaPods](http://img.shields.io/cocoapods/v/RxCodable.svg)](https://cocoapods.org/pods/RxCodable)
[![Build Status](https://travis-ci.org/devxoul/RxCodable.svg?branch=master)](https://travis-ci.org/devxoul/RxCodable)
[![codecov](https://img.shields.io/codecov/c/github/devxoul/RxCodable.svg)](https://codecov.io/gh/devxoul/RxCodable)RxSwift wrapper for Codable.
## At a Glance
```swift
struct User: Codable {
var name: String
}// Data -> User
Observable.just(jsonData).map(User.self)
Single.just(jsonData).map(User.self)
Maybe.just(jsonData).map(User.self)// String -> User
Observable.just(jsonString).map(User.self)
Single.just(jsonString).map(User.self)
Maybe.just(jsonString).map(User.self)
```## Installation
* **Using [CocoaPods](https://cocoapods.org)**:
```ruby
pod 'RxCodable'
```## Contributing
Any discussions and pull requests are welcomed 💖
To create a Xcode project:
```console
$ swift package generate-xcodeproj
```## License
RxCodable is under MIT license. See the [LICENSE](LICENSE) for more info.