I have an UIImageView with aspect fit.
The UIImage is always centered in the UIImageView, how can i make the image placed to the left? I can't find any settings. Is there any workaround?
I have an UIImageView with aspect fit.
The UIImage is always centered in the UIImageView, how can i make the image placed to the left? I can't find any settings. Is there any workaround?
Here is a good example using which you can achieve what you are trying to achieve.
It is a subclass of UIImageView that allows you to customize the alignment of the displayed image inside the view's frame. This works even if the contentMode is set to AspectFit, AspectFill or ScaleToFill.