         return animateTransition(for: presenting)(transitionContext)
     }
     
-    func animateTransition(for presenting: Bool) -> AnimateTransitionHandler {
+    //MARK: - Private
+    
+    private func animateTransition(for presenting: Bool) -> AnimateTransitionHandler {
         return presenting ? show : dismiss
     }
     

        }
    }
    
    private func center() {
        view.frame.origin = .zero
    }
    

        view.frame.origin.x += view.frame.size.width
    }
}

fileprivate extension UIViewControllerContextTransitioning {
    
    var completion: ((Bool) -> Swift.Void) {
        return { _ in
            self.completeTransition(true)
        }
    }
}
