         
         // create pan gesture recognizer if it's nil
         if mainPanGesture == nil {
-            mainPanGesture = UIPanGestureRecognizer(target: self, action: #selector(onPanGestureTriggered(_:)))
+            mainPanGesture = UIPanGestureRecognizer(target: self, action: #selector(onPanGestureTriggered(sender:)))
             view.addGestureRecognizer(mainPanGesture)
         }
         


public protocol EmbeddedViewControllerDelegate: class {
    // delegate to provide information about other containers
    func isContainerActive(_ position: Position) -> Bool
    
    // delegate to handle containers events
    func onDone(_ sender: AnyObject)
    func onshowEmbeddedView(_ position: Position, sender: AnyObject)
}

open class SwipeNavigationController: UIViewController {

        return true
    }
    
    @IBAction @objc fileprivate func onPanGestureTriggered(sender: UIPanGestureRecognizer) {
        switch sender.state {
        case .began:
            /* Restrict pan movement
