Hi, It would be nice to have a variable to restrict the zone of the PanGesture, because the user could close accidentally the Controller.
I patch the code in RainbowDragPop.swift to restrict the PanGesture for the first 30px:
func handlePan(_ panGesture:UIPanGestureRecognizer) {
let offset = panGesture.translation(in: panGesture.view)
let velocity = panGesture.velocity(in: panGesture.view)
let position = panGesture.location(in: panGesture.view) //EDIT
switch panGesture.state {
case .began:
if(position.x > 30){ return; } //EDIT
if !self.popAnimator.animating {
Hi, It would be nice to have a variable to restrict the zone of the PanGesture, because the user could close accidentally the Controller. I patch the code in RainbowDragPop.swift to restrict the PanGesture for the first 30px:
Regards