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
- 스위프트
- Human interface guide
- MVVM
- 클린 코드
- clean architecture
- map
- HIG
- Clean Code
- 리팩토링
- SWIFT
- Protocol
- ribs
- Xcode
- UICollectionView
- collectionview
- Refactoring
- 리펙토링
- uiscrollview
- 애니메이션
- ios
- uitableview
- Observable
- combine
- rxswift
- swiftUI
- tableView
- UITextView
- swift documentation
- 리펙터링
- RxCocoa
Archives
- Today
- Total
목록Transforming (1)
김종권의 iOS 앱 개발 알아가기
[RxSwift] 8. Transforming Operators 실전(RESTful API)
1. URL API REQ 1) map을 이용하여 원소에 접근하여 최종적으로 URLRequest획득 // viewDidLoad().swoft DispatchQueue.global(qos: .default).async { [weak self] in let response = Observable.from([repo]) .map { urlString -> URL in return URL(string: "https://api.github.com/repos/\(urlString)/events")! }.map { url -> URLRequest in return URLRequest(url: url) } } 2) flatMap을 이용하여 새로운 Observable생성 *map이 아닌 flatMap을 사용하는 이유 -..
RxSwift/RxSwift 기본
2020. 6. 4. 19:26