ReactiveCocoa /ReactiveCocoa
Cocoa framework and Obj-C dynamism bindings for ReactiveSwift.
★ 19,778⑂ 3,407👁 811⑃ 1,726● 2,007▤ 83
-1
日增长
19,778
stars
3,407
forks
811
watchers
1,726
prs
2,007
issues
83
releases
README
Reactive extensions to Cocoa frameworks, built on top of ReactiveSwift.
!Swift 5.1 !platforms
⚠️ [Looking for the Objective-C API?][]
🎉 [Migrating from RAC 4.x?][CHANGELOG]
🚄 Release Roadmap
What is ReactiveSwift?
__ReactiveSwift__ offers composable, declarative and flexible primitives that are built around the grand concept of ___streams of values over time___. These primitives can be used to uniformly represent common Cocoa and generic programming patterns that are fundamentally an act of observation.
For more information about the core primitives, see [ReactiveSwift][].
What is ReactiveCocoa?
__ReactiveCocoa__ wraps various aspects of Cocoa frameworks with the declarative [ReactiveSwift][] primitives.
1. UI Bindings
UI components expose [BindingTarget][]s, which accept bindings from any
kind of streams of values via the (object: person,
keyPath: keyPath(person.name))
But there are still more to be discovered and introduced. Read our in-code documentations and release notes to
find out more.
Getting started
ReactiveCocoa supports macOS 10.9+, iOS 8.0+, watchOS 2.0+, and tvOS 9.0+.
Carthage
If you use [Carthage][] to manage your dependencies, simply add
ReactiveCocoa to your Cartfile:
github "ReactiveCocoa/ReactiveCocoa" ~ 10.1
If you use Carthage to build your dependencies, make sure you have added ReactiveCocoa.framework and ReactiveSwift.framework to the "_Linked Frameworks and Libraries_" section of your target, and have included them in your Carthage framework copying build phase.
CocoaPods
If you use [CocoaPods][] to manage your dependencies, simply add
ReactiveCocoa to your Podfile:
pod 'ReactiveCocoa', '~ 10.1'
Swift Package Manager
If you use Swift Package Manager, simply add ReactiveCocoa as a dependency
of your package in Package.swift:
.package(url: "https://github.com/ReactiveCocoa/ReactiveCocoa.git", branch: "master")
Git submodule
1. Add the ReactiveCocoa repository as a [submodule][] of your
application’s repository.
1. Run git submodule update --init --recursive from within the ReactiveCocoa folder.
1. Drag and drop ReactiveCocoa.xcodeproj and Carthage/Checkouts/ReactiveSwift/ReactiveSwift.xcodeproj into your application’s Xcode
project or workspace.
1. On the “General” tab of your application target’s settings, add
ReactiveCocoa.framework and ReactiveSwift.framework to the “Embedded Binaries” section.
1. If your application target does not contain Swift code at all, you should also
set the EMBEDDED_CONTENT_CONTAINS_SWIFT build setting to “Yes”.
Have a question?
If you need any help, please visit our [GitHub issues][] or [Stack Overflow][]. Feel free to file an issue if you do not manage to find any solution from the archives.
Release Roadmap
Current Stable Release:
In Development
Plan of Record
ABI stability release
ReactiveCocoa is expected to declare library ABI stability when Swift rolls out resilience suppoTop issues
#3739Current version can't be compiled with the latest ReactiveSwift version7 comments · 2023-05-20#3743Privacy manifest required by Apple2 comments · 2024-04-24#3741Add output values support for interception0 comments · 2024-01-17#3734Cannot remove an observer <RACKVOProxy 0x280264940> for the key path "unit" from <HGConfigureModel 0x280d25050> because it is not registered as an observer.0 comments · 2022-11-18
Latest release
12.0.0 12.0.0 2021-11-20This is the first release of ReactiveCocoa 12.0. Change 1. This is a matching release for ReactiveSwift 7.0, which contained minor ABI and source breaking changes.