Search code examples
iosuibezierpath

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?


Solution

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

    myPath.bounds.size.height;
    

    And for width...

    myPath.bounds.size.width;