Why does adding a frame() to an image add padding in between the image and it's sibling? E.g. why is there padding underneath the A, but not the B, in this example? Thank you!
struct ContentView: View {
var body: some View {
VStack {
Text("A")
.border(Color.red, width:1)
Image(systemName: "globe")
.frame(minHeight:50)
.border(Color.black, width:1)
}
.border(Color.green, width:1)
VStack {
Text("B")
.border(Color.red, width:1)
Image(systemName: "globe")
.border(Color.black, width:1)
}
.border(Color.green, width:1)
}
}