Add a thin white border
This commit is contained in:
parent
7235ba3fb2
commit
1461b314ff
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue