Fix remove attachment menu item not being marked destructive

This commit is contained in:
Shadowfacts 2023-01-24 15:02:11 -05:00
parent 6eee97759e
commit 2ee34acbad
1 changed files with 2 additions and 2 deletions

View File

@ -37,9 +37,9 @@ struct ComposeAttachmentRow: View {
}
}
Button(action: self.removeAttachment) {
Button(role: .destructive, action: self.removeAttachment) {
Label("Delete", systemImage: "trash")
}.foregroundStyle(.red)
}
} previewIfAvailable: {
ComposeAttachmentImage(attachment: attachment, fullSize: true)
}