How do I create a smoothly resizable circular UIView?

前端 未结 4 1613
温柔的废话
温柔的废话 2020-12-13 22:09

I\'m trying to create a UIView which shows a semitransparent circle with an opaque border inside its bounds. I want to be able to change the bounds in two ways - inside a <

4条回答
  •  再見小時候
    2020-12-13 23:07

    Starting in iOS 11, UIKit animates cornerRadius if you change it inside an animation block.

提交回复
热议问题