Yonathan Hans
Yonathan Hans

Reputation: 35

UIStackView dynamic height image

I'm following tutorial in appcoda. The problem is when preview the stackview between different devices the height not following the size of the device.

Here is what i want:

Here is what i want

and here is what i got:

here is what i got

Do constraint effect height in different devices ? or you need code the height for different devices ?

Upvotes: 1

Views: 1021

Answers (1)

reza karimi
reza karimi

Reputation: 174

Choose the Image in storyboard and try to change "Content Mode" option as shown in this picture below

picture.

I believe "Aspect Fill" will fix it.

Upvotes: 1

Related Questions