登录 注册
其他 functionaliosobserverreactivereactivexrxswift
24,627
Stars
4,147
Forks
521
Watchers
19
Open Issues
MIT
许可证
Swift
语言
2015-04-07
创建时间
2026-09-04
最近更新

项目能做什么

Swift 响应式编程实现。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<p align="center">
<img src="https://github.com/ReactiveX/RxSwift/blob/main/assets/RxSwift_Logo.png?raw=true" width="35%" alt="RxSwift Logo" />
<br />
<a href="https://github.com/ReactiveX/RxSwift/actions/workflows/tests.yml" target="_blank"><img src="https://github.com/ReactiveX/RxSwift/actions/workflows/tests.yml/badge.svg" alt="Build Status" /></a>
<img src="https://img.shields.io/badge/platforms-iOS%20%7C%20macOS%20%7C%20tvOS%20%7C%20watchOS%20%7C%20Linux-333333.svg" alt="Supported Platforms: iOS, macOS, tvOS, watchOS & Linux" />
<br />
<a href="https://github.com/Carthage/Carthage" alt="RxSwift on Carthage" title="RxSwift on Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" /></a>
<a href="https://github.com/swiftlang/swift-package-manager" alt="RxSwift on Swift Package Manager" title="RxSwift on Swift Package Manager"><img src="https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg" /></a>
</p>

Rx is a [generic abstraction of computation](https://youtu.be/looJcaeboBY) expressed through `Observable<Element>` interface, which lets you broadcast and subscribe to values and other events from an `Observable` stream.

RxSwift is the Swift-specific implementation of the [Reactive Extensions](http://reactivex.io) standard.

<p align="center"><img src="https://github.com/ReactiveX/RxSwift/blob/main/assets/example.png?raw=true" width="55%" alt="RxSwift Observable Example of a price constantly changing and updating the app's UI" /></p>

While this version aims to stay true to the original spirit and naming conventions of Rx, this project also aims to provide a true Swift-first API for Rx APIs.

Cross platform documentation can be found on [ReactiveX.io](http://reactivex.io/).

Like other Rx implementations, RxSwift's intention is to enable easy composition of asynchronous operations and streams of data in the form of `Observable` objects and a suite of methods to transform and compose these pieces of asynchronous work.

KVO observation, async operations, UI Events and other streams of data are all unified under [abstraction of sequence](Documentation/GettingStarted.md#observables-aka-sequences). This is the reason why Rx is so simple, elegant and powerful.

## I came here because I want to ...

###### ... understand

* [why use rx?](https://github.com/ReactiveX/RxSwift/blob/main/Documentation/Why.md)
* [the basics, getting started with RxSwift](https://github.com/ReactiveX/RxSwift/blob/main/Documentation/GettingStarted.md)
* [traits](https://github.com/ReactiveX/RxSwift/blob/main/Documentation/Traits.md) - what are `Single`, `Completable`, `Maybe`, `Driver`, and `ControlProperty` ... and why do they exist?
* [testing](https://github.com/ReactiveX/RxSwift/blob/main/Documentation/UnitTests.md)
* [tips and common errors](https://github.com/ReactiveX/RxSwift/blob/main/Documentation/Tips.md)
* [debugging](https://github.com/ReactiveX/RxSwift/blob/main/Documentation/GettingStarted.md#debu
阅读完整原文

项目深度分析 AI 生成

RxSwift 代码现代迁移与重构工具 (Rx to Modern Swift)

产品构想开发针对 RxSwift 的代码静态分析与自动化重构 CLI 工具,帮助企业将 RxSwift 管道自动/半自动转换为 Swift Concurrency (AsyncSequence/async/await) 或 Combine。
核心功能语法树 AST 分析、常见 Rx 操作符自动映射为 Swift 原生并发语法、潜在内存泄漏预警、代码差异比对与单元测试辅助生成。
目标用户拥有 5 年以上历史存量代码、正在进行架构现代化演进的 iOS 团队和外包团队。
难度/周期高 · 3-6个月 · 成本:开发机器与测试用例搭建,近乎零直接云成本,主要为个人智力时间投入。
收费模式核心规则开源,企业版/高级代码分析工具按席位或代码行数收取 License 费用。
竞争风险RxSwift 高阶操作符与 Swift Concurrency 语义存在差异,自动化完全覆盖难度大;目标客户迁移意愿可能受预算周期影响。
依据 已验证事实

RxSwift 运行时事件流与内存分析调试桌面插件

产品构想针对 RxSwift 深度定制的调试伴侣(macOS 独立 App),通过注入机制实时可视化展示 Observable 生命周期、DisposeBag 释放状态及线程切换轨迹。
核心功能Rx 拓扑图实时绘制、未释放 Observable (Memory Leak) 预警报警、线程死锁与重入检测、历史事件快照回放。
目标用户仍在使用 RxSwift 维护大型复杂业务流的 iOS 开发者与测试工程师。
难度/周期中等 · 2-3个月 · 成本:个人开发者证书及测试环境,成本极低。
收费模式单次买断制(付费独立 App,如通过 Gumroad/Mac App Store)或团队订阅许可。
竞争风险RxSwift 本身市场份额在被 Apple 官方方案蚕食,存量工具付费意愿可能递减(推测)。
依据 AI推测

企业存量 iOS 响应式架构重构专家咨询与培训

产品构想依托对 RxSwift、Combine 和 Swift Concurrency 的底层机制理解,提供企业存量架构评估、性能瓶颈排查、混合混编架构过渡方案及内训课程。
核心功能架构评估报告、并发治理技术方案、定制化混合运行方案(Rx + async/await)、团队内训课程及答疑。
目标用户存在历史技术债且团队缺乏原生并发演进经验的科技公司、金融及电商类 App 研发团队。
难度/周期低 · 1个月以内启动 · 成本:主要是个人时间成本与营销推广投入。
收费模式按人天收费的高级技术咨询费、内训课程包收费。
竞争风险获客链路长,极度依赖个人行业声誉及商业网络。
依据 数据支持的判断
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2015-04-07,最近推送 2026-09-04,发布过 80 个 Release
社区活跃Star 24,627 / Fork 4,147 / Issue 19(数据支持,可自行核实)
许可证MIT
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。