7.0.0
版本发布时间: 2017-11-17 16:13:27
ReactiveCocoa/ReactiveCocoa最新发布版本:12.0.0(2021-11-20 22:26:26)
This is the first release of ReactiveCocoa 7.0. It supports Swift 3.2 and Swift 4.0.
Breaking Change
-
ReactiveCocoa 7.0 requires ReactiveSwift 3.0 (release note).
-
DynamicProperty
no longer emits optionals. (#3461, kudos to @andersio)It now caches the latest value so that even if the underlying object has deinitialised, it would still be able to provide access.
-
MapKit reactive bindings have been moved to a new ReactiveMapKit framework. (#3524)
Sources that use the MapKit bindings are now required to import ReactiveMapKit.
For all Xcode project users (including Carthage), targets need to be configured to link against ReactiveMapKit.
For CocoaPods users, your Podfile needs to be updated too, since the framework is offered as a standalone pod.
pod "ReactiveMapKit", "7.0.0-alpha.1"
Change
- ReactiveCocoa is now compatible with the Swift 4.0 language mode, in addition to the Swift 3.2 compatibility mode. (#3526, kudos to @andersio)
Addition
-
New convenience:
Property(object:keyPath:)
. (#3461, kudos to @andersio)A read-only version of
DynamicProperty
. Note that this variant is just for untyped key path. -
Subscripting
reactive
with a key path now yields a correspondingBindingTarget
under Swift 3.2+. (#3489, kudos to @andersio)Example:
label.reactive[\.text] <~ viewModel.title
-
UISearchBar has gained more reactive bindings and signals. (#3531, kudos to @andersio)
Signals: Search Button Clicked, Bookmark Button Clicked, Results List Clicked, Selected Scope Button Index
Binding Target: Selected Scope Button Indices.