Tôi đang sử dụng mã này để làm cho 2 góc của nút được làm tròn.Sử dụng UIBezierPath: byRoundingCorners: với Swift 2 và Swift 3
let buttonPath = UIBezierPath(roundedRect: button.bounds, byRoundingCorners: UIRectCorner.TopLeft | UIRectCorner.BottomLeft, cornerRadii: CGSizeMake(1.0, 1.0))
Nó ném một lỗi:
binary operator '|' cannot be applied to two UIRectCorner operands.
Làm thế nào để sử dụng phương pháp này trong Swift 2.0?