You can ignore mouse events in a window/view by adding just a single line of code.
window.ignoresMouseEvents = true
Or,
view.ignoresMouseEvents = true
You can ignore mouse events in a window/view by adding just a single line of code.
window.ignoresMouseEvents = true
Or,
view.ignoresMouseEvents = true
If this article was helpful, others might be too
Reliance Jio has done a commendable job releasing a video conferencing app in a short time frame, however, it received criticisms that it copied pixel by pixel from Zoom. I actually agree with some of the criticisms but that’s for another blog post.
When developing macOS applications with SwiftUI, you might need to create floating windows that stay on top of other windows. While modern macOS versions (15+) make this straightforward with the .windowLevel(.floating) modifier, supporting older versions requires a different approach. In this post, I’ll show you how to create floating windows that work across different macOS versions.
Adding Global Keyboard Shortcuts to your macOS app can be a pain as there isn’t a Cocoa API for the same. You would have to rely on the old, most of which are deprecated, Carbon API.