BugFix: Airdrop detection

This commit is contained in:
Hariharan Mudaliar 2026-03-08 17:09:57 +05:30
commit 39d1135006
No known key found for this signature in database
GPG key ID: 025583EB0BE5640E
3 changed files with 89 additions and 33 deletions

View file

@ -41,6 +41,7 @@ struct FileShareView: View {
var body: some View {
dropArea
.background(NSViewHost(view: $hostView))
.onAppear { quickShare.ensureDiscovered() }
.onDrop(of: [.fileURL, .url, .utf8PlainText, .plainText, .data, .image], isTargeted: $vm.dropZoneTargeting) { providers in
interactionNonce = .init()
vm.dropEvent = true