Member-only story
How to make exact rounding of control ios?
1 min readOct 6, 2020
Simply two line of code:
viewRound.layer.cornerRadius = viewRound.frame.size.height/2
viewRound.clipsToBounds = true
Make sure you are using same height and width like:
For example, if your view size is (10*10),(50*50),(100*100), etc. then your view becomes perfect squire else not
Here Auto Layout also matters.