delete(displayed:options:actionHandler:)
Creates a delete system accessory with the specified display state, configuration options, and optional action handler.
Declaration
static func delete(displayed: UICellAccessory.DisplayedState = .whenEditing, options: UICellAccessory.DeleteOptions = DeleteOptions(), actionHandler: UICellAccessory.ActionHandler? = nil) -> UICellAccessoryParameters
- displayed:
The cell-editing states that the delete accessory appears in. This parameter has a default value of Whenediting.
- options:
Configuration options for the delete accessory. See Deleteoptions for possible configuration options.
- actionHandler:
An optional closure that the system calls when a user interacts with the delete accessory.
Return Value
A configured delete cell accessory. This accessory is a minus sign inside of a circle with the default system red color. This accessory appears on the leading edge of the cell.