Show image name for posts
This commit is contained in:
parent
864dc9a544
commit
e69486895f
@ -20,12 +20,16 @@ struct PostImagesView: View {
|
|||||||
.cornerRadius(8)
|
.cornerRadius(8)
|
||||||
.layoutPriority(1)
|
.layoutPriority(1)
|
||||||
VStack {
|
VStack {
|
||||||
HStack {
|
HStack(alignment: .top) {
|
||||||
Button(action: { remove(image) }) {
|
Button(action: { remove(image) }) {
|
||||||
NavigationIcon(symbol: .trash, edge: .all)
|
NavigationIcon(symbol: .trash, edge: .all)
|
||||||
}
|
}
|
||||||
.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
Spacer()
|
Spacer()
|
||||||
|
Text(image.id)
|
||||||
|
.padding(4)
|
||||||
|
.foregroundStyle(Color.white.opacity(0.8))
|
||||||
|
.background(RoundedRectangle(cornerRadius: 8).fill(Color.black.opacity(0.7)))
|
||||||
}
|
}
|
||||||
Spacer()
|
Spacer()
|
||||||
HStack {
|
HStack {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user