Text Field Width


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?

Accepted Reply

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.

Replies

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.