Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calculate UIBezierPath width and height?

I am creating many umorphic UIBezierPaths. I need to calculate the width and the height of a UIBezierPath. How can I do that?

like image 813
shannoga Avatar asked Dec 01 '22 23:12

shannoga


1 Answers

You can get the height with the following line of code.

myPath.bounds.size.height;

And for width...

myPath.bounds.size.width;
like image 104
Tanner Silva Avatar answered Dec 05 '22 10:12

Tanner Silva