I have a polygon drawn as an UIBezierPath with 5 coordinates. It is correctly shown and the area is calculated, now I want a button that starts filling the shape until the button is released and calculate the percentage of the filled area. How can I do this efficiently?
On the left image there's the current implementation, the right one is what should look like after the logic is implemented.
Thank you in advance!