         
         swipeLeftGestureRecognizer = UISwipeGestureRecognizer(target: self, action: #selector(handleSwipeGestureRecognizer(_:)))
         addGestureRecognizer(swipeLeftGestureRecognizer)
+        swipeLeftGestureRecognizer.delegate = self
         swipeLeftGestureRecognizer.direction = .left
         
         swipeRightGestureRecognizer = UISwipeGestureRecognizer(target: self, action: #selector(handleSwipeGestureRecognizer(_:)))
         addGestureRecognizer(swipeRightGestureRecognizer)
+        swipeRightGestureRecognizer.delegate = self
         swipeRightGestureRecognizer.direction = .right
         swipeRightGestureRecognizer.require(toFail: swipeLeftGestureRecognizer)
         

        panGestureRecognizer.require(toFail: swipeRightGestureRecognizer)
        panGestureRecognizer.isEnabled = enablePanGesture
        
        tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(handleTapGestureRecognizer(_:)))
        tapGestureRecognizer.numberOfTapsRequired = 1
        tapGestureRecognizer.require(toFail: swipeLeftGestureRecognizer)
        tapGestureRecognizer.require(toFail: swipeRightGestureRecognizer)
        tapGestureRecognizer.require(toFail: panGestureRecognizer)
        
        setupActionsheet(side: .left, actions: actionsLeft)
        setupActionsheet(side: .right, actions: actionsRight)

        }
        
        backgroundColor = UIColor.clear
        tapGestureRecognizer.isEnabled = false
        
        isDefaultActionTriggered = false
        defaultAction = nil
        
        contentScreenshot?.removeFromSuperview()
        contentScreenshot?.removeGestureRecognizer(tapGestureRecognizer)
        contentScreenshot = nil
