cornerRadius stopped working in Swift 2.3 / iOS 10 / Xcode 8 : <p>I have a <code>cornerRadius</code> set on a <code>UIView</code> and a <code>UIImageView</code> inside the same <code>UIView</code>. I am calculating the corner radius with <code>RockProfileView.frame.size.height / 2</code> but the UIView stopped showing in iOS 10. </p>

<p>After further checking i found the value of <code>RockProfileView.frame.size.height / 2</code> is coming out to be 1000.0 while the width and height constraint is set to 64.0</p>

<p>When I hardcoded the <code>RockProfileView.layer.cornerRadius = 32</code> to 64/2 it works just fine. </p>

<p>What could be the issue ?</p>

<p>Full code:</p>

<pre><code>    RockProfileView.layer.cornerRadius = RockProfileView.frame.size.height / 2
    RockProfileView.clipsToBounds = true
    RockProgressView.layer.masksToBounds = true
</code></pre>
