I have a GeometryReader that properly spaces two input fields in .25/.75 proportion.
The issue is that the height of the geometry reader forms a perfect square where the height matches the width.
Is there a way to get the height to conform to the content within?
GeometryReader { geometry in HStack(spacing: 20) {
MsInputField(fieldInput: $country, placeholder: Text("P"))
.frame(
width: geometry.size.width * 0.25
)
MsInputField(fieldInput: $phone, placeholder: Text("Phone"), preIcon: "DropDown", postIcon: "DropDown")
}
}
