Allow dragging attachments between Compose windows

This commit is contained in:
Shadowfacts 2020-12-14 22:46:56 -05:00
parent d3c13ee1e6
commit 4ac3292183
1 changed files with 1 additions and 0 deletions

View File

@ -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)