On my app I want the first and last name text field to be the same width. I have them in a stack view with constraints. How do I make them the same width?
Text Field Width
Add a Comment
On my app I want the first and last name text field to be the same width. I have them in a stack view with constraints. How do I make them the same width?
Just set constraints between the 2 text fields :
If stacked vertically :
Control-drag from the second to the first and select leading and trailing.
If stacked horizontally
Control-drag from the second to the first and select equal width.
Just set constraints between the 2 text fields :
If stacked vertically :
Control-drag from the second to the first and select leading and trailing.
If stacked horizontally
Control-drag from the second to the first and select equal width.