An open API service indexing awesome lists of open source software.

https://github.com/dev1an/menuitemsbug

SwiftUI MenuItems bug
https://github.com/dev1an/menuitemsbug

Last synced: 12 months ago
JSON representation

SwiftUI MenuItems bug

Awesome Lists containing this project

README

          

# 🐞 SwiftUI MenuButton Bug 🦟

| **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 |![Screen capture](MenuItems/Screen-capture.gif)|

## Code

```swift
import SwiftUI

struct ContentView: View {
var body: some View {
MenuButton("Show menu") {
Button("first") {}
Button("second") {}
Divider()
Text("label")
Button("third") {}
}
}
}
```