https://github.com/devxoul/RxCodable
RxSwift wrapper for Codable
https://github.com/devxoul/RxCodable
codable moya rxswift
Last synced: 5 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 (almost 6 years ago)
- Last Synced: 2024-11-10T02:13:32.963Z (5 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

[](https://cocoapods.org/pods/RxCodable)
[](https://travis-ci.org/devxoul/RxCodable)
[](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.