In Swift programming , how do you crop an image and put it on the center afterwards?
This is what I\'ve got so far ... I\'ve successfully crop the image but I want t
You can also, very simply, put the concerned ImageView in "Aspect Fill" mode from the Storyboard, and add this in the code :
imageView.layer.masksToBounds = true imageView.clipsToBounds = true