Drops Documentation

Structure Drop.​Action

public struct Action  

An object representing a drop action.

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

icon UIImage?

Optional icon image.

handler @escaping () -> Void

Handler to be called when the drop is tapped.

Properties

icon

public var icon: UIImage? 

Icon.

handler

public var handler: () -> Void

Handler.