In my storyboard file, I have a horizontal StackView which is center aligned (both horizontally and vertically) in parent view. This stack contains three element
- Label "Hi"
- Image (an image from resource folder)
- Label "World"
StackView configuraation:
Distribution = Fill
Alignment = Last Baseline
In storyboard all items looks of the same height, but when ran on device, two label stays same size but image vertically resizes, and height start to mismatch with two label.
How can I impose height restriction on image, to match with label heights?
Note I have not specified a fixed height for any of my elements.
I want you to make some changes:
Result: See below Image