📌  相关文章
📜  视图控制器的快速角落半径 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:00.794000             🧑  作者: Mango

代码示例1
extension UIView {
    func makeCorner(withRadius radius: CGFloat) {
        self.layer.cornerRadius = radius
        self.layer.masksToBounds = true
        self.layer.isOpaque = false
    }
}