How to draw a directional arrow head
问题 I have lines in many directions and angles, I draw them using UIBezierpath . I need to draw an arrow on one of the ends of the line; dynamically depending on given point. Edit: Edit 2: with Jake answer here is my code let y2 = line.point2Y let path = UIBezierPath() path.move(to: CGPoint(x: x1, y: y1)) path.addLine(to: CGPoint(x: x2, y: y2)) path.addArrow(start: CGPoint(x: x1, y: y1), end: CGPoint(x: x2, y: y2), pointerLineLength: ... path.close() let shape = CAShapeLayer() let shapeBorder =