반응형
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 |
Tags
- operator
- @EnvironmentObject
- RxSwift
- NavigationLink
- URL(string:)
- NullObject
- Xcode
- @State
- vim
- Bug
- ios14
- @Environment
- @Binding
- Creating Operators
- typeorm
- init
- Operater
- init?
- nonisolated
- dismiss
- Operators
- RFC1738/1808
- SWIFT
- IOS
- subject
- RxCocoa
- SwiftUI
- swift6
- graphql
- nestjs
Archives
- Today
- Total
목록PublishSubject (1)
Tunko Development Diary

ReactiveX - Subject PublishSubject의 가장큰 특징은 옵저버의 구독 이후에 이벤트를 받을 수 있습니다. let disposeBag = DisposeBag() enum PublishSubjectError: Error { case error } // String타입을 받는 PublishSubject 생성 let subject = PublishSubject() subject.onNext("구독전") 먼저 subject는 옵저버와 옵저버블의 기능을 동시에 가지고 있습니다. 그래서 이벤트를 넘겨줄수 있습니다. 위 코드처럼 구독전에 subject에서 onNext 이벤트를 넘기면 아무런 이벤트도 받을 수 없습니다. 이후에 구독 코드를 추가해 줍니다. let subject = PublishSu..
Development/RxSwift
2022. 5. 30. 14:14