To enlarge the Menu icon button in a SwiftUI macOS application, you can use the "scaleEffect" modifier to increase the size of the icon. Here's an example code snippet:
Menu {
// menu items here
} label: {
Image(systemName: "ellipsis.circle")
.resizable()
.frame(width: 30, height: 30) // set initial size
.scaleEffect(2) // increase size
}
In this example, the "scaleEffect" modifier doubles the size of the icon. You can adjust the value to your desired size.
Asked: 2021-12-11 11:00:00 +0000
Seen: 10 times
Last updated: Jul 12 '21