How to draw a line with animation?

I have implemented a game application in which I want to draw a line between two objects. I drew a line between two objects. But I want to draw using animation. Let's say I tell you what kind of animation I should use between two points.

Editing: My controversial question is this: Suppose there are two points, such as the start point (100 100) and the end point (300 300). I can draw a line between these two points, but I want to draw a line with animation. I mean that I can see the beginning of the line from the start point to the end point with 2 seconds duration.please help me about this question.

+3
source share
2 answers
+5

A A B, CAShapeLayer . CAShapeLayer . . Joe Ricioppo post .

, , , . , .

+2

Source: https://habr.com/ru/post/1725267/


All Articles