Contents

Action

A type that describes a control associated with a tip.

Declaration

typealias Action = Tips.Action

Overview

Use actions to provide additional help and guidance for people looking to get started with your tip. Actions appear at the bottom of your TipView in the form of buttons.

You create an action by providing an id and a title. The id is a string that uniquely identifies the action. The title is text that displays as the label on the button.

You can pass a function for the system to call when the action triggers by setting the perform attribute in the init(id:title:perform:) initializer. Or you can set the action parameter in the init(_:arrowEdge:action:) initializer of your TipView.

Topics

Initializers

See Also

Providing actions