Contents

init(handler:)

Creates a button that invokes a handler when the user taps it.

Declaration

init(handler: ((CPButton) -> Void)? = nil)

Parameters

  • handler:

    The closure that the button invokes when the user taps it.

Return Value

A new contact directions button that invokes its handler when the user taps it.

Discussion

The button displays a system image that communicates its function.