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