BehaviorSubject 개념 및 활용
BehaviorSubject Represents a value that changes over time. Observers can subscribe to the subject to receive the last (or initial) value and all subsequent notifications. 생성자 init(value: Element) Initializes a new instance of the subject that caches its last value and starts with the specified value. 생성자 관련 설명을 보면 알 수 있듯이 BehaviorSubject는 PublishSubject와 다르게, 초기값을 가진다. 메서드 public func value() th..
iOS/RxSwift
2023. 3. 18. 22:32