6.0.0
版本发布时间: 2021-01-01 22:13:46
ReactiveX/RxSwift最新发布版本:6.7.1(2024-05-01 23:50:41)
RxSwift 6 is here!
New year, new version, new logo - such an exciting day! 🥳
To get a glimpse of what this new major version packs, check out the following blog post: What's new in RxSwift 6
Note: RxSwift 6 supports Xcode 12 and Swift 5.3 and has a minimum deployment target of iOS 9.
- All
ReactiveCompatible
objects (.rx
namespace) getBinder
s for all properties for free using@dynamicMemberLookup
. - New
Infallible
object which is identical toObservable
with the guarantee of never failing. - Add variadic
drive()
andemit()
to multiple observers and relays. - New
decode(type:decoder:)
operator forObsrvableType
s ofData
. -
SingleEvent
is now simplyResult<Element, Swift.Error>
and methods changed accordingly (e.g.subscribe(onSuccess:onFailure:)
). - Add
ReplayRelay
. - Add new
withUnretained(_:)
operator. - Add
distinctUntilChanged(at keyPath:)
. - Add
UIApplication
Reactive extensions . - Rename
catchError(_:)
tocatch(_:)
. - Rename
catchErrorJustReturn(_:)
tocatchAndReturn(_:)
. - Rename
elementAt(_:)
toelement(at:)
. - Rename
retryWhen(_:)
toretry(when:)
. - Rename
takeUntil(_:)
totake(until:)
andtakeUntil(behavior:_:)
totake(until:behavior:)
. - Rename
takeWhile(_:)
totake(while:)
andtakeWhile(behavior:_:)
totake(while:behavior:)
. - Rename
take(_:)
duration overload totake(for:)
(e.g.take(for: .seconds(3))
). - Rename
skipWhile(_:)
toskip(while:)
. - Rename
takeUntil(_:)
totake(until:)
. - Rename
observeOn
andsubscribeOn
toobserve(on:)
andsubscribe(on:)
. -
ignoreElements()
now returnsObservable<Never>
. - Make
SharedSequence
conform toObservableConvertibleType
. - Add
onDisposed
toMaybe
,Completable
andSingle
. - Unify and optimize swizzling extensions into a single one.
- Add
DisposeBag
function builder to allow easy comma-less initialization of aDisposeBag
. - Advance support of XCFrameworks by enabling
BUILD_LIBRARY_FOR_DISTRIBUTION
and cleaning up. - Move URLSession logging settings to a more appropriate URLSession.rx.shouldLogRequest configurable closure.
- Many, many, many quality of life bugs and fixes.
1、 RxSwift.xcframework.zip 44.45MB
2、 RxTest.xcframework.zip 7.5MB
3、 RxCocoa.xcframework.zip 21.48MB
4、 RxRelay.xcframework.zip 1.07MB
5、 RxBlocking.xcframework.zip 5.37MB
6、 RxCocoaRuntime.xcframework.zip 6.36MB