Make an image to be circular in Swift

0

How about, I'm working with a project in Xcode and I want to know how to change the style of an image so that it shows circular.

    
asked by Josstart 20.02.2017 в 22:35
source

1 answer

3

If you mean to get something similar to this:

All you need is the following code:

imageView.layer.cornerRadius = imageView.bounds.size.width / 2.0
    
answered by 20.02.2017 / 22:58
source