SwipeTableOptions
public struct SwipeTableOptions
The SwipeTableOptions
class provides options for transistion and expansion behavior for swiped cell.
-
The expansion style. Expansion is the behavior when the cell is swiped past a defined threshold.
Declaration
Swift
public var expansionStyle: SwipeExpansionStyle = .none
-
The transition style. Transition is the style of how the action buttons are exposed during the swipe.
Declaration
Swift
public var transitionStyle: SwipeTransitionStyle = .border
-
The background color behind the action buttons.
Declaration
Swift
public var backgroundColor: UIColor?
-
The largest allowable button width.
Note
By default, the value is set to the table view divided by the number of action buttons minus some additional padding. If the value is set to 0, then word wrapping will not occur and the buttons will grow as large as needed to fit the entire title/image.Declaration
Swift
public var maximumButtonWidth: CGFloat?
-
The smallest allowable button width.
Note
By default, the system chooses an appropriate size.Declaration
Swift
public var minimumButtonWidth: CGFloat?
-
The vertical alignment mode used for when a button image and title are present.
Declaration
Swift
public var buttonVerticalAlignment: SwipeVerticalAlignment = .centerFirstBaseline
-
The amount of space, in points, between the border and the button image or title.
Declaration
Swift
public var buttonPadding: CGFloat?
-
The amount of space, in points, between the button image and the button title.
Declaration
Swift
public var buttonSpacing: CGFloat?
-
Constructs a new
SwipeTableOptions
instance with default options.Declaration
Swift
public init()