SwipeExpanding
public protocol SwipeExpanding
Adopt the SwipeExpanding
protocol in objects that implement custom appearance of actions during expansion.
-
Asks your object for the animation timing parameters.
Declaration
Swift
func animationTimingParameters(buttons: [UIButton], expanding: Bool) -> SwipeExpansionAnimationTimingParameters
Parameters
buttons
The expansion action button, which includes expanding action plus the remaining actions in the view.
expanding
The new expansion state.
otherActionButtons
The other action buttons in the view, not including the action button being expanded.
-
Tells your object when the expansion state is changing.
Declaration
Swift
func actionButton(_ button: UIButton, didChange expanding: Bool, otherActionButtons: [UIButton])
Parameters
button
The expansion action button.
expanding
The new expansion state.
otherActionButtons
The other action buttons in the view, not including the action button being expanded.