GithubHelp home page GithubHelp logo

beeth0ven / rxswift-chinese-documentation Goto Github PK

View Code? Open in Web Editor NEW
1.3K 19.0 150.0 18.76 MB

RxSwift 中文文档

Home Page: https://beeth0ven.github.io/RxSwift-Chinese-Documentation/

License: MIT License

JavaScript 29.49% CSS 69.66% Shell 0.85%
rxswift reactivex chinese documentation

rxswift-chinese-documentation's Introduction

RxSwift 中文文档(非官方)

地址: https://beeth0ven.github.io/RxSwift-Chinese-Documentation/

如果以上地址被墙,可临时访问:https://rxswift.picroup.com/

简介

这是一份 RxSwift 中文文档。如今响应式编程变得越来越流行,我们已经无法阻挡这股热潮。这份文档整合了 RxSwift 文档,RxJS 文档,ReactiveX 文档以及笔者的一些个人观点。目的是为了让大家能够快速上手响应式编程。虽然本文档主要是介绍 RxSwift,不过使用其他响应式框架的开发者也可以从中获益,例如:ReactiveCocoaRxJavaRxJS 等。因为这些框架都有一些共性,例如:响应式的思维方式,操作符的功能及用法等。而这些内容文档里面都有介绍。

由于这是笔者第一次发布文档,如果文档存在问题,还请谅解。你可通过 10. 关于本文档 页面提供的方式,将问题反馈给笔者。同时也非常欢迎大家给我发合并请求。

目录

预览

Introduction


FunctionalReactiveProgramming


OperatorCreate


RxSwiftEcosystem

rxswift-chinese-documentation's People

Contributors

beeth0ven avatar calvingit avatar futurezhang avatar fuyoufang avatar info3781 avatar matthewyan avatar professordeng avatar px123zx avatar sheruce avatar swordforever avatar tobedefined avatar zwneng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rxswift-chinese-documentation's Issues

如何选择操作符中concatMap的说明好像有点偏差?

ConcatMap应该是对单个Observable序列操作的,而不是两个(它和concat不同),个人理解concatMap的作用是将一个类型的一个类型的Observable序列转换成另一个类型的Observable序列。比如将Observable<String> 转换成了Observable<Int>。

let subject1 = BehaviorSubject.init(value: "1")
 _ = subject1
      .takeUntil(self.rx.deallocated)
      .concatMap({ (str) -> Observable<Int> in
            return Observable<Int>.just(Int.init(str) ?? 99999)
      })
      .subscribe(onNext: { print($0) })
      
      subject1.onNext("2")
      subject1.onNext("3")
      subject1.onNext("4")
      subject1.onNext("ABC")
      subject1.onNext("5")

错误反馈

十分感谢您的分享~

您把 Completable 写成 Completeable了~
screenshot

错别字

3.2 节,“其实我们可以把这种操作序列的方式在升华一下。” 中 “在”->“再”

怎么理解Observable的附加作用

怎么理解Observable的附加作用就是subscribe函数?
虽然文档解释了是类似于Observeable.create({})。
然后文章直接给出了,这里的闭包{ (observer) -> Disposable in ... }可以看作是 subscribe 函数。
。。。

小弟不才,还请大佬指导一下。
public func subscribe<Observer>(_ observer: Observer) -> RxSwift.Disposable
subscribe函数哪里来的附加作用。

pdf 文档

希望能在 gitbook 上发布出完整的 PDF 版本, 比较方便学习和笔记

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.