Hello,
I am having the following code:
I want that the VStack inside the HStack to take the maximum available width after taking in the account Text("3").
However, there is a large space between them when I use Spacer(), and using GeometryReader is not going to work as there might be different values for Text("3")
Am I using layouts wrong?
Thanks
I am having the following code:
Code Block VStack{ Image() HStack(alignment: .center) { VStack(alignment: .leading{ Text("1") Text("2") }.border(Color.red, width: 4) /* Spacer() */ Text("3").border(Color.red, width: 4) } }
I want that the VStack inside the HStack to take the maximum available width after taking in the account Text("3").
However, there is a large space between them when I use Spacer(), and using GeometryReader is not going to work as there might be different values for Text("3")
Am I using layouts wrong?
Thanks