일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- map
- ios
- 리팩토링
- swiftUI
- HIG
- tableView
- rxswift
- 리펙터링
- clean architecture
- uiscrollview
- uitableview
- Clean Code
- 클린 코드
- ribs
- Observable
- Human interface guide
- SWIFT
- collectionview
- swift documentation
- MVVM
- Refactoring
- 애니메이션
- UITextView
- combine
- 스위프트
- 리펙토링
- Xcode
- UICollectionView
- RxCocoa
- Protocol
- Today
- Total
목록RxGesture (2)
김종권의 iOS 앱 개발 알아가기
UIGestureRecognizer Gesture를 등록할 때는 UIView의 성격을 가지고 있으면 UIGestureRecognizer를 등록하여 사용 // tap gesture let tapGesture = UITapGestureRecognizer(target: self, action: #selector(self.handleTap(_:))) myView.addGestureRecognizer(tapGesture) @objc func handleTap(_ sender: UITapGestureRecognizer? = nil) { // handle... } // swipe gesture let swipeGesture = UISwipeGestureRecognizer(target: self, action: #se..
RxGesture란 기존 Gesture 객체를 Rx로 감쌓아놓은 것 종속성 pod 'RxGesture' RxGesture 사용 방법 RxGesture가 없는 경우, 일반 UIView 바인딩 let sampleView = UIView() let tapGesture = UITapGestureRecognizer() sampleView.addGestureRecognizer(tapGesture) tapGesture.addTarget(self, action: #selector(didTapView)) RxGesture 사용 let sampleView = UIView() sampleView.rx.tapGesture() .asDriver{ _ in .never() } .drive() .disposed(by: bag) 주..