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) -> SwipeExpansionAnimationTimingParametersParameters
buttonsThe expansion action button, which includes expanding action plus the remaining actions in the view.
expandingThe new expansion state.
otherActionButtonsThe 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
buttonThe expansion action button.
expandingThe new expansion state.
otherActionButtonsThe other action buttons in the view, not including the action button being expanded.
View on GitHub
SwipeExpanding Protocol Reference