I have an HStack with content I want left aligned and then Details
title to be centered. I am using a Spacer()
to try and accomplish this but it looks like it's centering Details
dependent on the content to the left of it. I would like it to be independent of that and just be centered to the screen. Is that possible using Spacer()
?
VStack {
HStack(alignment: .top) {
Text("<------")
Spacer()
Text("Details")
Spacer()
}
Spacer()
}