This project makes it easy to make Polygon UIImageView.
I created clipToPolygon
method as UIImageView extension.
Here is source code.
The following one line code makes a hexagonal UIImageView.
imageView.clipToPolygon(corners:6)
This project makes it easy to make Polygon UIImageView.
I created clipToPolygon
method as UIImageView extension.
Here is source code.
The following one line code makes a hexagonal UIImageView.
imageView.clipToPolygon(corners:6)