     }
     
     // MARK: - Containers
-    open func showEmbeddedView(_ position: Position) {
+    open func showEmbeddedView(position: Position) {
         weak var disappearingViewController: UIViewController?
         let targetOffset: CGVector
         

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

        return (currentXOffset.constant, currentYOffset.constant) == (targetOffset.dx, targetOffset.dy)
    }
    
    func onDone(sender: AnyObject) {
        showEmbeddedView(position: .center)
    }
    
    func onshowEmbeddedView(position: Position, sender: AnyObject) {
        showEmbeddedView(position: position)
        
        
        
    }
    
    // MARK: - Pan Gestures
