Commit f1d1063c by Daniel Dahan

added interactive transitioning variable to Motion

parent 969344f3
......@@ -629,14 +629,12 @@ extension Motion: UIViewControllerAnimatedTransitioning {
}
}
extension Motion {
/// A reference to the interactive transitioning.
fileprivate var interactiveTransitioning: UIViewControllerInteractiveTransitioning? {
return self
extension Motion: UIViewControllerTransitioningDelegate {
/// A reference to the interactive transitioning instance.
var interactiveTransitioning: UIViewControllerInteractiveTransitioning? {
return forceNonInteractive ? nil : self
}
}
extension Motion: UIViewControllerTransitioningDelegate {
public func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
self.isPresenting = true
self.fromViewController = fromViewController ?? presenting
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment