📅  最后修改于: 2022-03-11 15:01:00.794000             🧑  作者: Mango
extension UIView {
func makeCorner(withRadius radius: CGFloat) {
self.layer.cornerRadius = radius
self.layer.masksToBounds = true
self.layer.isOpaque = false
}
}