             let totalDistance = swipeTranslation - targetTranslation
             let duration: CGFloat = 0.40
             let springVelocity = abs(swipeVelocity) * duration / totalDistance
-            
+        
             UIView.animate(withDuration: TimeInterval(duration), delay: 0, usingSpringWithDamping: 10, initialSpringVelocity: springVelocity, options: .beginFromCurrentState, animations: {
+                
+                if self.isIpadOrLandscape {
+                    if let indexPath = self.indexPathForActiveCell, let attributes = self.collectionView?.layoutAttributesForItem(at: indexPath) {
+                        self.leftViewToCoverCellOnLandscape = UIView(frame: CGRect(x: 0, y: attributes.frame.origin.y, width: 85, height: self.privateContentView.frame.height))
+                        self.leftViewToCoverCellOnLandscape?.backgroundColor = self.collectionView?.backgroundColor
+                        
+                        self.righttViewToCoverCellOnLandscape = UIView(frame: CGRect(x: attributes.frame.width + 85, y: attributes.frame.origin.y, width: 85, height: self.privateContentView.frame.height))
+                        self.righttViewToCoverCellOnLandscape?.backgroundColor = self.collectionView?.backgroundColor
+                        
+                        if let leftView = self.leftViewToCoverCellOnLandscape, let rightView = self.righttViewToCoverCellOnLandscape {
+                            self.collectionView?.addSubview(leftView)
+                            self.collectionView?.addSubview(rightView)
+                        }
+                    }
+                }
+                
                 self.swipeTranslation = targetTranslation
                 self.layoutIfNeeded()
             }, completion: { (finished: Bool) in

            self.actionsView?.isUserInteractionEnabled = false
            self.swipeInitialFramePosition = 0
            self.isActionPaneOpen = false
        })
        
    }

        return collectionView?.indexPath(for: self)
    }
    
    var isIpadOrLandscape: Bool {
        return UIDevice.current.userInterfaceIdiom == .pad ||
            UIDevice.current.orientation == .landscapeLeft ||
            UIDevice.current.orientation == .landscapeRight
    }
    
    var leftViewToCoverCellOnLandscape: UIView?
    var righttViewToCoverCellOnLandscape: UIView?

    
    func openActionPane() {
        // Make sure we don't swipe twice on the same cell.
        guard let actionsView = actionsView, swipeTranslation >= 0 else { return }
