title: Swift move drawn line's end point based on nearest touch & move
body: <p>I am following this <a href="https://stackoverflow.com/questions/27330676/how-to-detect-angle-on-touchbegan-and-touchmoved-actions-in-ios-swift">useful link</a> to make line which movable at both end.</p>
  
  <p>According to my requirements:</p>
  
  <ol>
  <li><p>When I do touch near in respect of start point of drawn line, starting point should move and ending point shouldn't move. </p></li>
  <li><p>Same thing should be happened in respect of ending point.</p></li>
  </ol>
  
  <p>Please let me know if anybody has a solution.</p>
  
  <p>Thanks.</p>