Commit f1d1063c by Daniel Dahan

added interactive transitioning variable to Motion

parent 969344f3
...@@ -629,14 +629,12 @@ extension Motion: UIViewControllerAnimatedTransitioning { ...@@ -629,14 +629,12 @@ extension Motion: UIViewControllerAnimatedTransitioning {
} }
} }
extension Motion { extension Motion: UIViewControllerTransitioningDelegate {
/// A reference to the interactive transitioning. /// A reference to the interactive transitioning instance.
fileprivate var interactiveTransitioning: UIViewControllerInteractiveTransitioning? { var interactiveTransitioning: UIViewControllerInteractiveTransitioning? {
return self return forceNonInteractive ? nil : self
} }
}
extension Motion: UIViewControllerTransitioningDelegate {
public func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? { public func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
self.isPresenting = true self.isPresenting = true
self.fromViewController = fromViewController ?? presenting 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