Steps to reproduce | Result |
---|---|
1. Download this project and open in Xcode 2. Run the macOS "MenuItems" target 3. Click on "Show menu" 4. Hover over the menu items |
![]() |
import SwiftUI
struct ContentView: View {
var body: some View {
MenuButton("Show menu") {
Button("first") {}
Button("second") {}
Divider()
Text("label")
Button("third") {}
}
}
}