forked from shadowfacts/Tusker
Allow dragging attachments between Compose windows
This commit is contained in:
parent
d3c13ee1e6
commit
4ac3292183
|
@ -36,6 +36,7 @@ struct ComposeAttachmentsList: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.listRowInsets(EdgeInsets(top: cellPadding / 2, leading: cellPadding / 2, bottom: cellPadding / 2, trailing: cellPadding / 2))
|
.listRowInsets(EdgeInsets(top: cellPadding / 2, leading: cellPadding / 2, bottom: cellPadding / 2, trailing: cellPadding / 2))
|
||||||
|
.onDrag { NSItemProvider(object: attachment) }
|
||||||
}
|
}
|
||||||
.onMove(perform: self.moveAttachments)
|
.onMove(perform: self.moveAttachments)
|
||||||
.onDelete(perform: self.deleteAttachments)
|
.onDelete(perform: self.deleteAttachments)
|
||||||
|
|
Loading…
Reference in New Issue