RxCodable 0.3.0

RxCodable 0.3.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by Suyeol Jeon.


Downloads

Total578
Week90
Month247

Installs

Apps24
Apps WeekApps This Week 12
Test Targets10
Test WeekTests This week 6
powered by Segment

GitHub

Stars40
Watchers1
Forks2
Issues0
Contributors1
Pull Requests0

Code

Files3
LOCLines of Code 51


RxCodable 0.3.0

  • By
  • Suyeol Jeon




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

  • Using CocoaPods:

    pod 'RxCodable'
    pod 'RxCodable/Moya'

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.