Discussion 議論
To set a specific style for all menu instances within a view, use the menu
modifier:
Menu("PDF") {
Button("Open in Preview", action: openInPreview)
Button("Save as PDF", action: saveAsPDF)
}
.menuStyle(ButtonMenuStyle())
Availability 有効性
Technology
To set a specific style for all menu instances within a view, use the menu
modifier:
Menu("PDF") {
Button("Open in Preview", action: openInPreview)
Button("Save as PDF", action: saveAsPDF)
}
.menuStyle(ButtonMenuStyle())