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?) -> Self
Parameters
value
The 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?) -> Self
Parameters
value
The 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?) -> Self
Parameters
value
The image to display in the action button.
Return Value
Self