From 1461b314ff5cb916e119bd3060b97e1826648649 Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Tue, 20 Dec 2022 12:36:57 -0500 Subject: [PATCH] Add a thin white border --- .../MastodonUI/View/Content/MediaAltTextOverlay.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MastodonSDK/Sources/MastodonUI/View/Content/MediaAltTextOverlay.swift b/MastodonSDK/Sources/MastodonUI/View/Content/MediaAltTextOverlay.swift index 594ed48ae..09aeaa9e0 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Content/MediaAltTextOverlay.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Content/MediaAltTextOverlay.swift @@ -44,6 +44,12 @@ struct MediaAltTextOverlay: View { .tint(.white) .background(Color.black.opacity(0.85)) .cornerRadius(4) + .overlay( + .white.opacity(0.5), + in: RoundedRectangle(cornerRadius: 4) + .inset(by: -0.5) + .stroke(lineWidth: 0.5) + ) .animation(.spring(response: 0.25), value: showingAlt) .frame(width: geom.size.width, height: geom.size.height, alignment: .bottomLeading) }