cornerRadius stopped working in Swift 2.3 / iOS 10 / Xcode 8
As answered by Rob, I’ve moved the code from viewDidLoad to viewDidAppear and the problem is fixed. OR Adding self.view.layoutIfNeeded() before your code in viewDidLoad also solves the issue. In case of UITableViewCell, Inside awakeFromNib add [self layoutIfNeeded]; before updating the corner radius should solve all the issues.