I\'m using this code to make 2 corners of a button rounded.
let buttonPath = UIBezierPath(roundedRect: button.bounds, byRoundingCo
In this case in swift 2.0 is required to make union of two corners. F. ex.:
let corners = UIRectCorner.TopLeft.union(UIRectCorner.BottomLeft) let buttonPath = UIBezierPath(roundedRect: button.bounds, byRoundingCorners: corners, cornerRadii: CGSizeMake(1.0, 1.0))
Works with Swift 2 and Swift 3