Skip to content

Commit be35307

Browse files
broadwaylambfreak4pc
authored andcommitted
Update for Xcode 11 beta 3
1 parent 416ec07 commit be35307

File tree

5 files changed

+32
-32
lines changed

5 files changed

+32
-32
lines changed

Data/core_components.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Completable,❌,
66
CompositeDisposable,❌,
77
ConnectableObservableType,ConnectablePublisher,
88
Disposable,Cancellable,
9-
DisposeBag,❌,
9+
DisposeBag,A collection of AnyCancellables,"Call anyCancellable.store(in: collection), where collection can be an array, a set, or any other RangeReplaceableCollection"
1010
Driver,BindableObject (SwiftUI),"Both guarantee no failure, but Driver guarantees delivery on Main Thread. In Combine, SwiftUI recreates the entire view hierarachy on the Main Thread, instead."
11-
Maybe,,
11+
Maybe,Publishers.Optional,
1212
Observable,Publisher,
1313
Observer,Subscriber,
1414
PublishRelay,❌,"Simple wrapper around PublishSubject, could be easily recreated in Combine"

Data/operators.csv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
RxSwift,Combine,Notes
22
amb(),❌,
33
asObservable(),eraseToAnyPublisher(),
4-
asObserver(),eraseToAnySubject(),
4+
asObserver(),,
55
bind(to:),`assign(to:on:)`,Assign uses a KeyPath which is really nice and useful. RxSwift needs a Binder / ObserverType to bind to.
66
buffer,buffer,
77
catchError,catch,
@@ -22,7 +22,7 @@ do,handleEvents,
2222
elementAt,output(at:),
2323
empty,Publishers.Empty(completeImmediately: true),
2424
enumerated,❌,
25-
error,Publishers.Once,Publishers.Once has an initializer that takes an Error
25+
error,Publishers.Fail,
2626
filter,"filter, tryFilter",
2727
first,"first, tryFirst",
2828
flatMap,flatMap,
@@ -34,7 +34,7 @@ ifEmpty(default:),replaceEmpty(with:),
3434
ifEmpty(switchTo:),❌,Could be achieved with composition - replaceEmpty(with: publisher).switchToLatest()
3535
ignoreElements,ignoreOutput,
3636
interval,❌,
37-
just,Publishers.Just,
37+
just,Just,
3838
map,"map, tryMap",
3939
materialize,❌,
4040
merge,"merge, tryMerge",

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,30 @@ It's based on the following blog post: [https://medium.com/gett-engineering/rxsw
1717

1818
## [Core Components](Data/core_components.csv)
1919

20-
| RxSwift | Combine | Notes |
21-
|---------------------------|--------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
22-
| AnyObserver | AnySubscriber | |
23-
| BehaviorRelay || Simple wrapper around BehaviorSubject, could be easily recreated in Combine |
24-
| BehaviorSubject | CurrentValueSubject | This seems to be the type that holds @State under the hood |
25-
| Completable || |
26-
| CompositeDisposable || |
27-
| ConnectableObservableType | ConnectablePublisher | |
28-
| Disposable | Cancellable | |
29-
| DisposeBag | | |
30-
| Driver | BindableObject (SwiftUI) | Both guarantee no failure, but Driver guarantees delivery on Main Thread. In Combine, SwiftUI recreates the entire view hierarachy on the Main Thread, instead. |
31-
| Maybe | | |
32-
| Observable | Publisher | |
33-
| Observer | Subscriber | |
34-
| PublishRelay || Simple wrapper around PublishSubject, could be easily recreated in Combine |
35-
| PublishSubject | PassthroughSubject | |
36-
| ReplaySubject || |
37-
| ScheduledDisposable || |
38-
| SchedulerType | Scheduler | |
39-
| SerialDisposable || |
40-
| Signal || |
41-
| Single | Future | They're only similar in the sense of single emission, but Future shares resources and executes immediately (very strange behavior) |
42-
| SubjectType | Subject | |
43-
| TestScheduler || There doesn't seem to be an existing testing scheduler for Combine code |
20+
| RxSwift | Combine | Notes |
21+
|---------------------------|---------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
22+
| AnyObserver | AnySubscriber | |
23+
| BehaviorRelay | | Simple wrapper around BehaviorSubject, could be easily recreated in Combine |
24+
| BehaviorSubject | CurrentValueSubject | This seems to be the type that holds @State under the hood |
25+
| Completable | | |
26+
| CompositeDisposable | | |
27+
| ConnectableObservableType | ConnectablePublisher | |
28+
| Disposable | Cancellable | |
29+
| DisposeBag | A collection of AnyCancellables | Call anyCancellable.store(in: collection), where collection can be an array, a set, or any other RangeReplaceableCollection |
30+
| Driver | BindableObject (SwiftUI) | Both guarantee no failure, but Driver guarantees delivery on Main Thread. In Combine, SwiftUI recreates the entire view hierarachy on the Main Thread, instead. |
31+
| Maybe | Publishers.Optional | |
32+
| Observable | Publisher | |
33+
| Observer | Subscriber | |
34+
| PublishRelay | | Simple wrapper around PublishSubject, could be easily recreated in Combine |
35+
| PublishSubject | PassthroughSubject | |
36+
| ReplaySubject | | |
37+
| ScheduledDisposable | | |
38+
| SchedulerType | Scheduler | |
39+
| SerialDisposable | | |
40+
| Signal | | |
41+
| Single | Future | They're only similar in the sense of single emission, but Future shares resources and executes immediately (very strange behavior) |
42+
| SubjectType | Subject | |
43+
| TestScheduler | | There doesn't seem to be an existing testing scheduler for Combine code |
4444

4545

4646
## [Operators](Data/operators.csv)
@@ -49,7 +49,7 @@ It's based on the following blog post: [https://medium.com/gett-engineering/rxsw
4949
|-----------------------|----------------------------------------------|----------------------------------------------------------------------------------------------------------|
5050
| amb() || |
5151
| asObservable() | eraseToAnyPublisher() | |
52-
| asObserver() | eraseToAnySubject() | |
52+
| asObserver() | | |
5353
| bind(to:) | `assign(to:on:)` | Assign uses a KeyPath which is really nice and useful. RxSwift needs a Binder / ObserverType to bind to. |
5454
| buffer | buffer | |
5555
| catchError | catch | |
@@ -70,7 +70,7 @@ It's based on the following blog post: [https://medium.com/gett-engineering/rxsw
7070
| elementAt | output(at:) | |
7171
| empty | Publishers.Empty(completeImmediately: true) | |
7272
| enumerated || |
73-
| error | Publishers.Once | Publishers.Once has an initializer that takes an Error |
73+
| error | Publishers.Fail | |
7474
| filter | filter, tryFilter | |
7575
| first | first, tryFirst | |
7676
| flatMap | flatMap | |
@@ -82,7 +82,7 @@ It's based on the following blog post: [https://medium.com/gett-engineering/rxsw
8282
| ifEmpty(switchTo:) || Could be achieved with composition - replaceEmpty(with: publisher).switchToLatest() |
8383
| ignoreElements | ignoreOutput | |
8484
| interval || |
85-
| just | Publishers.Just | |
85+
| just | Just | |
8686
| map | map, tryMap | |
8787
| materialize || |
8888
| merge | merge, tryMerge | |

Resources/core_components.jpg

33.2 KB
Loading

Resources/operators.jpg

-11.4 KB
Loading

0 commit comments

Comments
 (0)