From 2ee34acbad7b0e2f9612502fcfec92b2bd897e83 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 24 Jan 2023 15:02:11 -0500 Subject: [PATCH] Fix remove attachment menu item not being marked destructive --- Tusker/Screens/Compose/ComposeAttachmentRow.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tusker/Screens/Compose/ComposeAttachmentRow.swift b/Tusker/Screens/Compose/ComposeAttachmentRow.swift index ab26294c..29eb78b1 100644 --- a/Tusker/Screens/Compose/ComposeAttachmentRow.swift +++ b/Tusker/Screens/Compose/ComposeAttachmentRow.swift @@ -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) }