Comment on SwiftUI macOS: tracking the mouse in a view? how do you convert this from screen coordinates to location in view? nm: you use the $0.locationInWindow not NSEvent.mouseLocation and then convert, silly UI Frameworks SwiftUI Aug ’21