-2

Does anyone know how to create UIView with such shape?

enter image description here

Thanks!

Evghenii Todorov
  • 637
  • 6
  • 15

1 Answers1

0

You can use UIBezierPath to draw a mask layer to your UIView. After drawing you mask layer you can use drawRect or add a mask to your view's layer.mask. A similar question was asked before: Drawing UIBezierPath on code generated UIView

Ashraf Tawfeeq
  • 3,036
  • 1
  • 20
  • 34