So I have an HStack, but I can't seem to get the items to properly align vertically, so I wanted to reach out and see if the community can help me.
So here is the code:
HStack(alignment: .center) {
Text("Already have an account?")
.foregroundColor(Color.white)
.font(Font.custom("Nunito-Medium", size: 16))
.multilineTextAlignment(.center)
.lineLimit(1)
Button(action: {
// Action
}) {
Text("Sign In")
.font(Font.custom("Nunito-Medium", size: 16))
}
}
.padding(.bottom, 5)
.opacity(0.9)
.border(.yellow)
As you can see, the text inside the HStack, is not vertically aligned, which is driving me nuts and I can't figure it out using modifiers, so I wanted to reach out and see what would be a great way to get things inside an HStack or even VStack and have them be vertically/horizontally aligned properly?

