https://github.com/dev1an/menuitemsbug
SwiftUI MenuItems bug
https://github.com/dev1an/menuitemsbug
Last synced: 12 months ago
JSON representation
SwiftUI MenuItems bug
- Host: GitHub
- URL: https://github.com/dev1an/menuitemsbug
- Owner: Dev1an
- Created: 2020-01-21T21:04:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-21T21:22:31.000Z (over 6 years ago)
- Last Synced: 2025-03-14T20:31:20.021Z (over 1 year ago)
- Language: Swift
- Size: 768 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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 ||
## Code
```swift
import SwiftUI
struct ContentView: View {
var body: some View {
MenuButton("Show menu") {
Button("first") {}
Button("second") {}
Divider()
Text("label")
Button("third") {}
}
}
}
```