Two drawn lines affecting each other

50 views Asked by At

Hello i am trying to do so when line that is drawn as the finger moves on the screen (red line in image below) and when the finger is taken off the screen while the red line has crossed the black line i want an integer variable to increase with 1. Both lines has been drawn using UIBezierPath. But i don't know the most precise way to do this.

edit - The black line comes in from the left side.

0

There are 0 answers