From eb26a4d6c35f9f5f5910541e6ee1273786626d2d Mon Sep 17 00:00:00 2001 From: Marcus Kida Date: Tue, 15 Nov 2022 15:44:51 +0100 Subject: [PATCH] fix: Improve media inline appearance --- .../Scene/ComposeContent/View/ComposeContentView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MastodonSDK/Sources/MastodonUI/Scene/ComposeContent/View/ComposeContentView.swift b/MastodonSDK/Sources/MastodonUI/Scene/ComposeContent/View/ComposeContentView.swift index 10ca4e71f..a7f867f60 100644 --- a/MastodonSDK/Sources/MastodonUI/Scene/ComposeContent/View/ComposeContentView.swift +++ b/MastodonSDK/Sources/MastodonUI/Scene/ComposeContent/View/ComposeContentView.swift @@ -222,13 +222,17 @@ extension ComposeContentView { VStack(spacing: 16) { ForEach(viewModel.attachmentViewModels, id: \.self) { attachmentViewModel in AttachmentView(viewModel: attachmentViewModel) - .clipShape(Rectangle()) + .clipShape(RoundedRectangle(cornerRadius: 4)) .badgeView( Button { viewModel.attachmentViewModels.removeAll(where: { $0 === attachmentViewModel }) } label: { Image(systemName: "minus.circle.fill") + .resizable() + .frame(width: 20, height: 20) .foregroundColor(.red) + .background(Color.white) + .clipShape(Circle()) } ) } // end ForEach