cornerRadius stopped working in Swift 2.3 / iOS 10 / Xcode 8

I have a cornerRadius set on a UIView and a UIImageView inside the same UIView. I am calculating the corner radius with RockProfileView.frame.size.height / 2 but the UIView stopped showing in iOS 1...