How to get mouse location when view is on hover in SwiftUI?

Viewed 833

SwiftUI has onHover for View to hook hover events, but it only gives feedback of hovered or not, which is a Bool.

How can I get the mouse location when View is on hover ?

0 Answers
Related