Initializer

init(style:title:handler:)

Creates a new contextual action with the specified title and handler.

Declaration

convenience init(style: UIContextualAction.Style, title: String?, handler: @escaping UIContextualAction.Handler)

Parameters

style

The style information to apply to the action button.

title

The title of the action button.

handler

The handler to execute when the user selects the action.

Return Value

An initialized contextual action object.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software