docs/docsets/SwipeCellKit.docset/Contents/Resources/Documents/Classes/SwipeTableViewCell.html
open class SwipeTableViewCell: UITableViewCell
The SwipeTableViewCell class extends UITableViewCell 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 SwipeTableViewCellDelegate delegate.
`
delegate
`
The object that acts as the delegate of the SwipeTableViewCell.
Swift
public weak var delegate: SwipeTableViewCellDelegate?
`
swipeOffset
`
The point at which the origin of the cell is offset from the non-swiped origin.
Swift
public var swipeOffset: CGFloat
`
hideSwipe(animated:completion:)
`
Hides the swipe actions and returns the cell to center.
Swift
public func hideSwipe(animated: Bool, completion: ((Bool) -> Void)? = nil)
| animated |
Specify true to animate the hiding of the swipe actions or false to hide it immediately.
|
| completion |
The closure to be executed once the animation has finished. A Boolean argument indicates whether or not the animations actually finished before the completion handler was called.
|
`
showSwipe(orientation:animated:completion:)
`
Shows the swipe actions for the specified orientation.
Swift
public func showSwipe(orientation: SwipeActionsOrientation, animated: Bool = true, completion: ((Bool) -> Void)? = nil)
| orientation |
The side of the cell on which to show the swipe actions.
|
| animated |
Specify true to animate the showing of the swipe actions or false to show them immediately.
|
| completion |
The closure to be executed once the animation has finished. A Boolean argument indicates whether or not the animations actually finished before the completion handler was called.
|
`
setSwipeOffset(_:animated:completion:)
`
The point at which the origin of the cell is offset from the non-swiped origin.
Swift
public func setSwipeOffset(_ offset: CGFloat, animated: Bool = true, completion: ((Bool) -> Void)? = nil)
© 2018 Mohammad Kurabi. All rights reserved. (Last updated: 2018-05-26)
Generated by jazzy ♪♫ v0.8.4, a Realm project.