반응형
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
- URL(string:)
- SWIFT
- RxCocoa
- dismiss
- Xcode
- IOS
- vim
- operator
- RxSwift
- Creating Operators
- RFC1738/1808
- init?
- nonisolated
- typeorm
- Operater
- graphql
- @State
- Operators
- SwiftUI
- subject
- ios14
- Bug
- @Environment
- nestjs
- init
- swift6
- @Binding
- NullObject
- @EnvironmentObject
- NavigationLink
Archives
- Today
- Total
목록zip (1)
Tunko Development Diary
RxSwift) Transforming Operators (combineLatest, zip)
combineLatest combineLastest는 2개부터 8개까지 옵저버블을 파라미터로 받고, 클로저를 리턴합니다. combineLastest에서 중요한건 이벤트가 방출되는 시점입니다. let disposeBag = DisposeBag() let emoticonSubject = PublishSubject() let textSubject = PublishSubject() Observable.combineLatest(emoticonSubject, textSubject) { emoticon, text -> String in return "\\(emoticon) : \\(text)" } .subscribe{ print($0)} .disposed(by: disposeBag) emoticonSubject.on..
Development/RxSwift
2022. 6. 4. 20:47