From e69486895f598469332fb175aabe33da832c189a Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Mon, 13 Jan 2025 21:54:53 +0100 Subject: [PATCH] Show image name for posts --- CHDataManagement/Views/Posts/PostImagesView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHDataManagement/Views/Posts/PostImagesView.swift b/CHDataManagement/Views/Posts/PostImagesView.swift index 96a6ff7..37a72c1 100644 --- a/CHDataManagement/Views/Posts/PostImagesView.swift +++ b/CHDataManagement/Views/Posts/PostImagesView.swift @@ -20,12 +20,16 @@ struct PostImagesView: View { .cornerRadius(8) .layoutPriority(1) VStack { - HStack { + HStack(alignment: .top) { Button(action: { remove(image) }) { NavigationIcon(symbol: .trash, edge: .all) } .buttonStyle(.plain) Spacer() + Text(image.id) + .padding(4) + .foregroundStyle(Color.white.opacity(0.8)) + .background(RoundedRectangle(cornerRadius: 8).fill(Color.black.opacity(0.7))) } Spacer() HStack {