If I have an UIImageView with the mode set to center for example how can I change it to something else such as aspect fit with code?

enter image description here

Edit
Report