Button with PlainButtonStyle doesn’t get tapped when the window is inactive
I’m writing a MacOS app. I’m displaying a button. When the app is inactive, if I click the button, the button’s tap event gets triggered as the same time as the window is activated. So far so good.
How to disable searchable autofocus on TextEditor exit?
Every time on exit from .popover TextField (escape or .popover outside click) cursor automatically appears in search field. How to disable that cursor “jumping” behaviour for .searchable field?
How to remove icon in alert dialog?
How can I remove icon?
I want to show only title, description and button.
Presenting GroupActivitySharingController using SwiftUI on MacOS
I am trying to present a GroupActivitySharingController using SwiftUI. I am using a NSViewControllerRepresentable:
How to place PhotoPicker on a popover on MacOS
SwiftUI’s PhotoPicker doesn’t fit into the screen when I place it on a popover and click on it to select a photo.
How to preview drop locations during .onMove on. List in a SwiftUI macOS app?
I am building a macOS application using SwiftUI and I’m implementing a drag and drop feature within a List. I want to visually preview the drop locations while the items are being dragged, but I’m not sure how to achieve this. Here’s the relevant part of my code: