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

startWith startWith는 옵저버블 앞수분에 다른 항목을 추가합니다. startWith는 가변 파라미터 입니다. let disposeBag = DisposeBag() let emoticons = ["🍎", "🍊", "🥝", "🍉"] Observable.from(emoticons) .startWith("🍇") .startWith("🍈") .startWith("🍌", "🫐", "🍒") .subscribe { print($0) } .disposed(by: disposeBag) 출력 next(🍌) next(🫐) next(🍒) next(🍈) next(🍇) next(🍎) next(🍊) next(🥝) next(🍉) completed 결과를 보면 가장 나중에 추가한 startWith가 가장 먼저 방출되는것을..
Development/RxSwift
2022. 6. 4. 14:10