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
- Refactoring
- RxCocoa
- Protocol
- 리펙토링
- map
- Observable
- uitableview
- rxswift
- Human interface guide
- Xcode
- UITextView
- SWIFT
- clean architecture
- 애니메이션
- swift documentation
- 리팩토링
- 스위프트
- Clean Code
- UICollectionView
- 리펙터링
- uiscrollview
- combine
- HIG
- ios
- collectionview
- tableView
- swiftUI
- 클린 코드
- MVVM
- ribs
Archives
- Today
- Total
목록DelegateProxyType (1)
김종권의 iOS 앱 개발 알아가기
[RxCocoa] 4. Delegate Proxy - Delegate를 rx로 바꾸어 사용하기
Delegate Proxy란? delegate를 사용하는 부분을 RxSwift로 표현할 수 있도록 하는 것 * 원리 : DelegateProxy.swift 파일과 DelegateProxyType.swift 이용 * Delegate개념 : 함수 실행위치를 미리 선언해 놓고, 구현은 직접 하라고 delegate시키는 것 -> (protocol로 선언) import UIKit import RxSwift import RxCocoa protocol MyDelegate { func willStart() func end() } class UISomething: NSObject { var delegate: MyDelegate? = nil func start() { delegate?.willStart() // 이 함수를..
RxSwift/RxCocoa
2020. 8. 5. 23:20