I've designed a ViewController
with an ImageView
, 3 Label-TextField
combination, one single Label
and one Toolbar
at the bottom of the view. All of these view elements are inside a Stack View
. The design is like below:
The contentMode
property of the ImageView
is set to Aspect Fit in the Attributes Inspector.
Now when I run the app and select different size of photos, the ImageView
seems to be inconsistent different times. Like:
The teal color background the
ImageView
is set to distinguish the difference between theImageView
and the original Background.
This is okay. But when I choose a large size photo it seems to be inconsistent as the ImageView
is overlapping the Toolbar
below and this time the Camera
button is no more clickable. Here is the image:
And the design gets more broken when I choose another photo. The view is showing up differently in different times. Screenshots are: and
Now what to do? I haven't done any of these design from the code side, all from the Interface Builder.
Any help will be appreciable.
I have these options in the Drawing section of Attributes Inspector: