SwipeActionTransitioningContext
public struct SwipeActionTransitioningContext
The SwipeActionTransitioningContext type provides information relevant to a specific action as transitioning occurs.
-
The unique action identifier.
Declaration
Swift
public let actionIdentifier: String? -
The button that is changing.
Declaration
Swift
public let button: UIButton -
The old visibility percentage between 0.0 and 1.0.
Declaration
Swift
public let newPercentVisible: CGFloat -
The new visibility percentage between 0.0 and 1.0.
Declaration
Swift
public let oldPercentVisible: CGFloat -
Sets the background color behind the action button.
Declaration
Swift
public func setBackgroundColor(_ color: UIColor?)Parameters
colorThe background color.
View on GitHub
SwipeActionTransitioningContext Structure Reference