mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
BugFix: Airdrop detection
This commit is contained in:
parent
98dfa7a7e5
commit
39d1135006
3 changed files with 89 additions and 33 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue