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
In swift 4.1 I would do simply:
imageView.clipsToBounds = true imageView.contentMode = .scaleAspectFill imageView.layer.cornerRadius = 20
Credits to Stretching, Redrawing and Positioning with contentMode