Generic Structure

MenuButton

A button that displays a menu containing a list of choices when pressed.

Declaration

struct MenuButton<Label, Content> where Label : View, Content : View

Topics

Implementing a Custom Menu Button

Instance Methods

Relationships

Conforms To

See Also

Buttons

struct Button

A control that performs an action when triggered.

struct NavigationLink

A button that triggers a navigation presentation when pressed.

struct EditButton

A button that toggles the edit mode for the current edit scope.

struct PasteButton

A system button that triggers reading data from the pasteboard.