SwipeCollectionViewCell
open class SwipeCollectionViewCell: UICollectionViewCellThe SwipeCollectionViewCell class extends UICollectionViewCell and provides more flexible options for cell swiping behavior.
The default behavior closely matches the stock Mail.app. If you want to customize the transition style (ie. how the action buttons are exposed), or the expansion style (the behavior when the row is swiped passes a defined threshold), you can return the appropriately configured SwipeOptions via the SwipeCollectionViewCellDelegate delegate.
- 
                  
                  The object that acts as the delegate of the SwipeCollectionViewCell.DeclarationSwift public weak var delegate: SwipeCollectionViewCellDelegate?
- 
                  
                  The point at which the origin of the cell is offset from the non-swiped origin. DeclarationSwift public var swipeOffset: CGFloat
- 
                  
                  Hides the swipe actions and returns the cell to center. DeclarationSwift public func hideSwipe(animated: Bool, completion: ((Bool) -> Void)? = nil)ParametersanimatedSpecify trueto animate the hiding of the swipe actions orfalseto hide it immediately.completionThe closure to be executed once the animation has finished. A Booleanargument indicates whether or not the animations actually finished before the completion handler was called.
- 
                  
                  Shows the swipe actions for the specified orientation. DeclarationSwift public func showSwipe(orientation: SwipeActionsOrientation, animated: Bool = true, completion: ((Bool) -> Void)? = nil)ParametersorientationThe side of the cell on which to show the swipe actions. animatedSpecify trueto animate the showing of the swipe actions orfalseto show them immediately.completionThe closure to be executed once the animation has finished. A Booleanargument indicates whether or not the animations actually finished before the completion handler was called.
- 
                  
                  The point at which the origin of the cell is offset from the non-swiped origin. DeclarationSwift public func setSwipeOffset(_ offset: CGFloat, animated: Bool = true, completion: ((Bool) -> Void)? = nil)ParametersoffsetA point (expressed in points) that is offset from the non-swiped origin. animatedSpecify trueto animate the transition to the new offset,falseto make the transition immediate.completionThe closure to be executed once the animation has finished. A Booleanargument indicates whether or not the animations actually finished before the completion handler was called.
 View on GitHub
View on GitHub SwipeCollectionViewCell Class Reference
        SwipeCollectionViewCell Class Reference