Resize issue when 2 text fields(of different width) in same row

I'm using storyboard for a Mac App.

Quite a very simple layout, but it's kind of impossible for me to make it right with storyboard.

I'm trying to set two text fields in same line, first text field width shorter than the second one width. They should appropriately resize when the super view resized.

Things I tried. Two text fields pinned to both ends. Made 'width' with 'greater than' for both text fields, so that it occupies more width when view resize to bigger space.

Behaviour is ,only the first text field box resizes, second text field doest not. I tried, changing CHCR, reduced priority for first text field width, but whatever may be the case, only the first text field stretches when view is stretched big.

What we can do to make both text fields resize proportionally based on super view resizes.?

Both text fields resize nicely only when Setting both text fields associated as "Equal Width".But my use case wants different width for both text fields and they should proportionally resized when view is resized.

Using xcode 12.5. on big sur 11.4.

Some screenshot attached.

Answered by AThomas in 680643022

If we embed in a stack, then the right most control resizes. However, I could not find anything proportional width resizing of multiple controls based on super view resize. I guess, the only way is to do a programatic width increment as only a solution.

Accepted Answer

If we embed in a stack, then the right most control resizes. However, I could not find anything proportional width resizing of multiple controls based on super view resize. I guess, the only way is to do a programatic width increment as only a solution.

Resize issue when 2 text fields(of different width) in same row
 
 
Q