BehaviorSubject
-
SubjectsSwift/RxSwift 2022. 3. 25. 00:44
import UIKit import RxSwift func example(of description: String, action: () -> Void) { print("\n--- Example of:", description, "---") action() } Observables are a fundamental part of RxSwift, but they’re essentially read-only. You may only subscribe to them to get notified of new events they produce. A common need when developing apps is to manually add new values onto an observable during runti..