Now that RxSwift is set up in our project, let's start with a few basic concepts before diving into some code:
- A stream in SwiftRx is represented through Observable<ObservableType>, which is equivalent to Sequence, with the added capability of being able to receive new elements asynchronously.
- An observable stream in Rx can emit three different events: next, error, and complete.
- When an observer registers for a stream, the stream begins to emit next events, and it does so until an error or complete event is generated, in which case the stream stops emitting events.
- You subscribe to a stream by calling ObservableType.subscribe, which is equivalent to Sequence.makeIterator. However, you do not use that iterator directly, ...