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
- golang
- windows10
- war
- Codable
- docker
- Java
- SWIFT
- CentOS
- nodejs
- go
- intellij
- android
- Spring
- tomcat
- Kotlin
- git
- Gradle
- php
- rxswift
- ubuntu
- Xcode
- cocoapods
- Linux
- enum
- Python
- MySQL
- Windows
- centos8
- github
- ios
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함