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
- Protocol
- ios
- RxCocoa
- UITextView
- 스위프트
- 애니메이션
- combine
- swift documentation
- rxswift
- Refactoring
- UICollectionView
- 리펙터링
- map
- collectionview
- SWIFT
- Clean Code
- clean architecture
- MVVM
- 리펙토링
- tableView
- swiftUI
- Human interface guide
- uitableview
- 클린 코드
- Observable
- HIG
- 리팩토링
- Xcode
- ribs
- uiscrollview
Archives
- Today
- Total
목록flatMapFirst (1)
김종권의 iOS 앱 개발 알아가기
[RxSwift] 3. flatMap / flatMapFirst / flatMapLatest
1. flatMap - Observable관련 이벤트를 받아서, 새로운 Observable 방출 let sequenceInt = Observable.of(1, 2, 3) let sequenceString = Observable.of("A", "B", "C", "D") sequenceInt .flatMap { (x: Int) -> Observable in print("Emit Int Item : \(x)") return sequenceString } .subscribeNext { print("Emit String Item : \($0)") } // Output Emit Int Item : 1 Emit String Item : A Emit String Item : B Emit String Item : C E..
RxSwift/RxSwift 응용
2020. 9. 27. 00:54