반응형 RX2 RxSwift property observe (BehaviorRelay, Variable) RxSwift property observe (BehaviorRelay, Variable) property 구독하기 property를 구독하기 위하여 BehaviorRelay를 사용한다. RxSwift 4.0 이전에는 Variable을 사용했었다. 하지만 Variable은 Depreated가 예정 되었고 BehaviorRelay가 새로 나오게 되었다. Variable을 사용하게 되면 xcode console창에 아래와 같이 경고가 발생한다. Variable은 deprecated가 예정되었습니다. BehaviorRelay로 변경해주세요. [DEPRECATED] `Variable` is planned for future deprecation. Please consider `BehaviorRelay` as a.. 2019. 5. 25. RxSwift 객체 구독하기 (Observable) RxSwift 객체 구독하기 (Observable) 포스팅 하기에는 정말 민망할 정도로 자세하게 홈페이지에 설명이 작성되어 있다. 영어로 작성이 되어있지만 오른쪽에 한국어로 변경이 가능하도록 되어 있어 편하게 볼수 있다. Observable : 식별할 수 있는, 관찰할 수 있는 http://reactivex.io/documentation/observable.html ReactiveX - Observable Observable In ReactiveX an observer subscribes to an Observable. Then that observer reacts to whatever item or sequence of items the Observable emits. This pattern facil.. 2019. 5. 18. 이전 1 다음 반응형