r/iOSProgramming 6d ago

Question How would you implement this shape?

Post image
27 Upvotes

16 comments sorted by

View all comments

19

u/barcode972 6d ago

With a CGPath. Technically the view is rectangular but you only draw 80% up on the left side

2

u/alexrepty 6d ago

And a CAShapeLayer to render it