我正在使用动画缩放圆角图像视图,但未插入角半径。
UIView.animate(withDuration: time,
animations: {() -> Void in
avatar.frame = CGRect(0, 0, avatarWidth, avatarWidth)
avatar.center = CGPoint(App.screenWidth / 2, centerY)
avatar.layer.cornerRadius = avatarWidth / 2
)
如何在整个动画期间保持圆角形式?