Swift之畫圓角添加多個枚舉值方法

1.it

    let cornerValue = UIRectCorner.topRight.rawValue|UIRectCorner.bottomRight.rawValuewifi

     let corner = UIRectCorner(rawValue: cornerValue)top

    let path = UIBezierPath.init(roundedRect: wifiLabel.bounds, byRoundingCorners: corner, cornerRadii: CGSize.init(width: 15, height: 15))di

2.co

let path = UIBezierPath.init(roundedRect: wifiLabel.bounds, byRoundingCorners: [.topRight,.bottomRight], cornerRadii: CGSize.init(width: 15, height: 15))let

相關文章
相關標籤/搜索