반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- @EnvironmentObject
- Xcode
- typeorm
- vim
- IOS
- RxSwift
- Operater
- ios14
- Bug
- dismiss
- init?
- RxCocoa
- RFC1738/1808
- URL(string:)
- SWIFT
- init
- NavigationLink
- NullObject
- Creating Operators
- @Environment
- operator
- @Binding
- swift6
- graphql
- nonisolated
- SwiftUI
- @State
- Operators
- nestjs
- subject
Archives
- Today
- Total
목록BehaviorSubject (1)
Tunko Development Diary

BehaviorSubject는 기능상으로 PublishSubject와 큰 차이가 없습니다. 하지만 생성 및 구독을 할때 차이가 있습니다. 바로 예제 코드와 로그를 통해 알아보겠습니다. let disposeBag = DisposeBag() enum MyError: Error { case error } let publishSubject = PublishSubject() publishSubject.subscribe {print("publishSubject : \\($0)")} publishSubject.disposed(by: disposeBag) let behaviorSubject = BehaviorSubject(value: 1) behaviorSubject.subscribe {print("behaviorSu..
Development/RxSwift
2022. 5. 30. 14:44