         
             UIView.animate(withDuration: TimeInterval(duration), delay: 0, usingSpringWithDamping: 10, initialSpringVelocity: springVelocity, options: .beginFromCurrentState, animations: {
                 
-                if self.isIpadOrLandscape {
-                    self.adjustAnimationForLandscape()
-                }
+                self.adjustAnimationIfNecessary()
                 
                 self.swipeTranslation = targetTranslation
                 self.layoutIfNeeded()

            })
    }
    
    func adjustAnimationForLandscape() {
        
        if let indexPath = self.indexPathForActiveCell, let attributes = self.collectionView?.layoutAttributesForItem(at: indexPath) {
            
            let positionY = attributes.frame.origin.y
            let height = self.privateContentView.frame.height
            let width: CGFloat = 85
            
            self.leftViewToCoverCellOnLandscape = UIView(frame: CGRect(x: 0, y: positionY, width: width, height: height))
            self.leftViewToCoverCellOnLandscape?.backgroundColor = self.collectionView?.backgroundColor

        return collectionView?.indexPath(for: self)
    }
    
    var leftViewToCoverCellOnLandscape: UIView?
    var righttViewToCoverCellOnLandscape: UIView?
    
