Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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.