일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 리펙터링
- Clean Code
- Protocol
- combine
- rxswift
- map
- UICollectionView
- ribs
- uiscrollview
- RxCocoa
- Human interface guide
- MVVM
- clean architecture
- 클린 코드
- uitableview
- collectionview
- 리팩토링
- Refactoring
- Xcode
- swiftUI
- SWIFT
- swift documentation
- ios
- 애니메이션
- UITextView
- 리펙토링
- Observable
- 스위프트
- HIG
- tableView
- 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) 주..