protocol MenuStyle
A type that applies standard interaction behavior and a custom appearance to all menus within a view hierarchy.
ある型、それは標準相互作用挙動とあるあつらえの外観をあるビュー階層内の全てのメニューに適用します。
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())
protocol MenuStyle