SwipeOptions
public struct SwipeOptions
The SwipeOptions
class provides options for transistion and expansion behavior for swiped cell.
-
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 expansion style. Expansion is the behavior when the cell is swiped past a defined threshold.
Declaration
Swift
public var expansionStyle: SwipeExpansionStyle?
-
The object that is notified when expansion changes.
Note
If anexpansionDelegate
is not provided, and the expanding action is configured with a clear background, the system automatically uses the defaultScaleAndAlphaExpansion
to show/hide underlying actions.Declaration
Swift
public var expansionDelegate: SwipeExpanding?
-
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/collection 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
SwipeOptions
instance with default options.Declaration
Swift
public init()