The art of state
Pre-release
Pre-release
This is a beta version of RxSwift 2.0.
Updated
- Improves KVO mechanism.
- Type of observed object is now first argument
view.rx_observe(CGRect.self, "frame")
- Support for observing ObjC bridged enums and
RawRepresentable
protocol - Support for easier extending of KVO using
KVORepresentable
protocol - Deprecates KVO extensions that don't accept type as first argument in favor of ones that do.
- Type of observed object is now first argument
- Adds
flatMapLatest
(also added toDriver
unit). - Adds
flatMapFirst
operator (also added toDriver
unit). - Adds
retryWhen
operator. - Adds
window
operator. - Adds
single
operator. - Adds
single
(blocking version) operator. - Adds
rx_primaryAction
onUIButton
fortvOS
. - Transforms error types in
RxSwift
/RxCocoa
projects fromNSError
s to Swift enum types.RxError
RxCocoaError
RxCocoaURLError
- ...
NSURLSession
extensions now returnObservable<(NSData!, NSHTTPURLResponse)>
instead ofObservable<(NSData!, NSURLResponse!)>
.- Optimizes consecutive map operators. For example
map(validate1).map(validate2).map(parse)
is now internally optimized to onemap
operator. - Adds overloads for
just
,sequenceOf
,toObservable
that accept scheduler. - Deprecates
asObservable
extension ofSequenceType
in favor oftoObservable
. - Adds
toObservable
extension toArray
. - Improves table view animated data source example.
- Polishing of
RxDataSourceStarterKit
differentiateForSectionedView
operatorrx_itemsAnimatedWithDataSource
extension
- Makes blocking operators run current thread's runloop while blocking and thus disabling deadlocks.
Fixed
- Fixes example with
Variable
in playgrounds so it less confusing regarding memory management. - Fixes
UIImageView
extensions to useUIImage?
instead ofUIImage!
. - Fixes improper usage of
CustomStringConvertible
and replaces it withCustomDebugStringConvertible
.
Check out Migration guide to RxSwift 2.0