From 4ac329218364d75416c0a4b650f42d9d3e5f81f5 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 14 Dec 2020 22:46:56 -0500 Subject: [PATCH] Allow dragging attachments between Compose windows --- Tusker/Screens/Compose/ComposeAttachmentsList.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Tusker/Screens/Compose/ComposeAttachmentsList.swift b/Tusker/Screens/Compose/ComposeAttachmentsList.swift index a6fa03ea..c4028bf2 100644 --- a/Tusker/Screens/Compose/ComposeAttachmentsList.swift +++ b/Tusker/Screens/Compose/ComposeAttachmentsList.swift @@ -36,6 +36,7 @@ struct ComposeAttachmentsList: View { } } .listRowInsets(EdgeInsets(top: cellPadding / 2, leading: cellPadding / 2, bottom: cellPadding / 2, trailing: cellPadding / 2)) + .onDrag { NSItemProvider(object: attachment) } } .onMove(perform: self.moveAttachments) .onDelete(perform: self.deleteAttachments)