Components alignment.

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

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

Loading…
Cancel
Save