Swift之画圆角添加多个枚举值方法
1.
let cornerValue = UIRectCorner.topRight.rawValue|UIRectCorner.bottomRight.rawValue
let corner = UIRectCorner(rawValue: cornerValue)
let path = UIBezierPath.init(roundedRect: wifiLabel.bounds, byRoundingCorners: corner, cornerRadii: CGSize.init(width: 15, height: 15))
2.
let path = UIBezierPath.init(roundedRect: wifiLabel.bounds, byRoundingCorners: [.topRight,.bottomRight], cornerRadii: CGSize.init(width: 15, height: 15))
提高技能如同提升自信心。