marcosgriselli / marcosgriselli/SwipeableTabBarController
Disable UIPanGesture on specific UIView
- Dominant language
- Swift
- Stars
- 1.5k
- Forks
- 108
- PR merge metrics
- No merged PRs in 30d
Description
Would it be possible to disable pan gesture for a specific UIView inside a UIViewController?
As the UIPanGestureRecognizer is private, it's not possible to do the following:
```
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
if touch.view?.isDescendant(of: view) == true {
return false
}
return true
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
No implementation file or test is named. Start by locating the private UIPanGestureRecognizer in the UIViewController and review how it handles touches; then determine how a specific UIView could be excluded. Done means callers can disable panning for that UIView without affecting other tab-swipe interactions, with the behavior covered by an appropriate test or reproducible example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100