Skip to content

Instantly share code, notes, and snippets.

@aybekckaya
Created May 14, 2020 07:37
Show Gist options
  • Save aybekckaya/363c47c8abfb6aae8ad3b5f7cec093bd to your computer and use it in GitHub Desktop.
Save aybekckaya/363c47c8abfb6aae8ad3b5f7cec093bd to your computer and use it in GitHub Desktop.
// MARK: Gesture Delegate
extension InteractiveMenu : UIGestureRecognizerDelegate{
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
if let _ = self.panGestureScrollableContent {
if self.scrollableContentView!.contentOffset.y <= 0 {
return true
}
return false
}
return true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment