Structure
Drop.Action
public struct Action
An object representing a drop action.
Relationships
Member Of
Drop
An object representing a drop.
Initializers
init(icon:handler:)
public init(icon: UIImage? = nil, handler: @escaping () -> Void)
Create a new action.
Parameters
Name | Type | Description |
---|---|---|
icon | UIImage? |
Optional icon image. |
handler | @escaping () -> Void |
Handler to be called when the drop is tapped. |