0

So my designer wants a view with rounded corners in Swift. Easy, right? The kicker, however, is that he wants the topLeft and bottomRight corners to have a radius of 16, while the topRight and bottomLeft corners ALSO have their own, distinct radius of 2.

My initial thought was to simply create 2 UIBezierPaths, each with it's own radii and intersect them... only to find out that UIBezierPath doesn't have intersection or union operators.

Is there an easy way to do this or do I simply need to bite the bullet and draw the silly thing by hand?

Michael Long
  • 896
  • 7
  • 12

0 Answers0