         self.presentedViewController = presentedViewController
         self.isPresenting = true
         self.isInteractive = false
-        super.init()    }
+        super.init()
+        self.presentingViewController!.view.addGestureRecognizer(self.presentationGesture)
+    }
     
     deinit {
         removeDismissalGestureRecognizer()
+        self.presentationGesture.removeTarget(self, action: #selector(WMFTableOfContentsAnimator.handlePresentationGesture(_:)))
+        self.presentationGesture.view?.removeGestureRecognizer(self.presentationGesture)
     }
     
     weak var presentingViewController: UIViewController?

                return false
            }
            
        } else {
            return true
        }
    }
}


import UIKit

// MARK: - Delegate
