ListContextualAction
@available(iOS 11.0, *)
public class ListContextualAction : UIContextualAction
An action to display when the user swipes a list row.
-
Sets the title displayed on the action button.
Declaration
Swift
@discardableResult public func title(_ value: String?) -> SelfParameters
valueThe title displayed on the action button.
Return Value
Self
-
Sets the background color of the action button.
Declaration
Swift
@discardableResult public func backgroundColor(_ value: UIColor?) -> SelfParameters
valueThe background color of the action button.
Return Value
Self
-
Sets the image to display in the action button.
Declaration
Swift
@discardableResult public func image(_ value: UIImage?) -> SelfParameters
valueThe image to display in the action button.
Return Value
Self
ListContextualAction Class Reference