This is for macOS, how to add onHover in the extension so that it applies to every Button in my app?
Button("Hello World") {
print("Hello World")
}
.onHover { inside in
if inside {
NSCursor.pointingHand.push()
} else {
NSCursor.pop()
}
}
extension Button {
//
}
You can "override" the default implementations with a "Project" version.
The example above will replace all the instances of