RxSwift. Observable combine
RxSwift로 흐름에 따라 값의 변화에 따라서 처리를 하고 이것을 자연스럽게 합쳐서 사용할 수 있습니다. 이번에는 Combine 할수 있는 함수들을 알아보도록 하겠습니다. 1. combineLatest 12345678let first = Observable.of(1, 2, 3, 4)let second = Observable.of(100, 200, 300, 400) Observable.combineLatest(first, second) { first, second -> String in return "\(first), \(second)"}.subscribe(onNext: { text in print("text = \(text)")}).disposed(by: disposeBag)Colored by Colo..
Mobile/iOS
2018. 6. 19. 18:29
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- php
- enum
- intellij
- war
- tomcat
- Python
- Linux
- Java
- docker
- windows10
- ios
- android
- rxswift
- nodejs
- golang
- Codable
- go
- github
- Kotlin
- SWIFT
- centos8
- Gradle
- cocoapods
- MySQL
- CentOS
- Spring
- Xcode
- git
- ubuntu
- Windows
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함