1. CGPathMoveToPoint' is unavailable: Use move(to:transform:) 2. 'CGPathAddLineToPoint' is unavailable: Use addLine(to:transform:) : <p>I have created one of my application in <code>swift 2</code> in <code>Xcode 7.3.1</code>. But now I have open same application in <code>Xcode 8.0</code> and perform changes. Some automatic changes are done and some errors and suggestions shown I have corrected them. But I am facing issue that </p>

<pre><code>let path = CGMutablePath()
CGPathMoveToPoint(path, nil, lineFrame.midX, lineFrame.midY)
CGPathAddLineToPoint(path, nil, lineFrame.origin.x + lineFrame.width / 2, lineFrame.origin.y)
</code></pre>

<p>I tried to create <code>path</code>, but shows error that </p>

<blockquote>
  <ol>
  <li><code>CGPathMoveToPoint</code> is unavailable: Use move(to:transform:)</li>
  <li><code>CGPathAddLineToPoint</code> is unavailable: Use addLine(to:transform:)</li>
  </ol>
</blockquote>

<p>If anyone have solution, please let me know.</p>
