title: How to scale a rounded UImageview?
body: <p>I am scaling a rounded image view using an animation but the corner radius is not interpolated.</p>
  
  <pre><code>UIView.animate(withDuration: time, 
  animations: {() -&gt; Void in
  
                         avatar.frame = CGRect(0, 0, avatarWidth, avatarWidth)
                         avatar.center = CGPoint(App.screenWidth / 2, centerY)
                         avatar.layer.cornerRadius = avatarWidth / 2
                      )
  </code></pre>
  
  <p>How can keep the rounded form during the whole animation?</p>