The figure below shows the result that has already been processed. For detailed instructions, follow the steps below.
- Add the ‘ImageView’ object to your storyboard.
2. Add the constraints that you want. In this post, I added two constraints ‘Center Horizontally in Safe Area’ and ‘Center Vertically in Safe Area’ as follows.
3. Adjust the layout of the ‘ImageView’ object. In my case, I want to resize the ‘image’ automatically for each device. If you want to resize the margin automatically, you may activate the arrow of the margin where you want.
4. Finish! The final process is confirming it works as you intended via several physical or virtual devices.