I am building an iOS app with a form and I am using stackviews. This is the example of what I want to achieve:
The textbox and button are part of horizontal stack view. What I need is a way to allocate percentage-like width to them. For eg, textbox would take 80% of total stackview width and button would take 20%.
Stackview's alignment and distribution property are set to 'fill'.
I tried adding width constraint to the button but I feel that its not proper way of doing it as width would differ for different screen sizes.