Sto usando questo codice per arrotondare i 2 angoli di un pulsante.Utilizzo di UIBezierPath: byRoundingCorners: con Swift 2 e Swift 3
let buttonPath = UIBezierPath(roundedRect: button.bounds, byRoundingCorners: UIRectCorner.TopLeft | UIRectCorner.BottomLeft, cornerRadii: CGSizeMake(1.0, 1.0))
getta un errore:
binary operator '|' cannot be applied to two UIRectCorner operands.
Come si utilizza questo metodo in Swift 2.0?