Fix remove attachment menu item not being marked destructive
This commit is contained in:
parent
6eee97759e
commit
2ee34acbad
|
@ -37,9 +37,9 @@ struct ComposeAttachmentRow: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button(action: self.removeAttachment) {
|
Button(role: .destructive, action: self.removeAttachment) {
|
||||||
Label("Delete", systemImage: "trash")
|
Label("Delete", systemImage: "trash")
|
||||||
}.foregroundStyle(.red)
|
}
|
||||||
} previewIfAvailable: {
|
} previewIfAvailable: {
|
||||||
ComposeAttachmentImage(attachment: attachment, fullSize: true)
|
ComposeAttachmentImage(attachment: attachment, fullSize: true)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue