目录
目录README.md

RxCodable

Swift CocoaPods Build Status codecov

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

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.

关于
59.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号