Created
June 20, 2019 14:59
-
-
Save ohlulu/33d35380955e5ce3133ed183ae88688b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UpToDownIneraction: UIPercentDrivenInteractiveTransition { | |
// ... | |
func wireGesture(on viewController: UIViewController) { | |
presentingViewController = viewController | |
let gesture = UIPanGestureRecognizer(target: self, action: #selector(handleGesture(_:))) | |
viewController.view.addGestureRecognizer(gesture) | |
} | |
@objc func handleGesture(_ gestureRecoginizer: UIPanGestureRecognizer) { | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment