Swift Draw Lines on Your View

CAShape Tool Shared.

Result like~

  1. sample code from Online
adjust everything (copy below)

2. Make a function for repeated using.