Components alignment.

pull/6/head
Pedro Cuenca 2 years ago
parent da83fdfff1
commit 795c1a187a

@ -92,13 +92,15 @@ struct ImageWithPlaceholder: View {
VStack {
imageView.resizable().clipShape(RoundedRectangle(cornerRadius: 20))
HStack {
if let interval = interval {
Text(String(format:"Time: %.1fs", interval))
}
Spacer()
ShareButtons(image: theImage, name: lastPrompt)
let intervalString = String(format: "Time: %.1fs", interval ?? 0)
Rectangle().fill(.clear).overlay(Text(intervalString).frame(maxWidth: .infinity, alignment: .leading).padding(.leading))
Rectangle().fill(.clear).overlay(
HStack {
Spacer()
ShareButtons(image: theImage, name: lastPrompt).padding(.trailing)
}
)
}.frame(maxHeight: 25)
})
}
}

Loading…
Cancel
Save