View Source Menu
<Menu>
Tappable element that expands to reveal a list of options.
Overview
Provide the content
and label
children to create a menu.
<Menu>
<Text template={:label}>
Edit Actions
</Text>
<Group template={:content}>
<Button phx-click="arrange">Arrange</Button>
<Button phx-click="update">Update</Button>
<Button phx-click="remove">Remove</Button>
</Group>
</Menu>
Menus can be nested by including another <Menu>
in the content
.
Children
label
- Describes the content of the menu.content
- Elements displayed when expanded.
SwiftUI Documentation
See SwiftUI.Menu
for more details on this View.