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( 15, height: 15))
2.
let path = UIBezierPath.init(roundedRect: wifiLabel.bounds, byRoundingCorners: [.topRight,.bottomRight], cornerRadii: CGSize.init( 15, height: 15))