I have created one of my application in
swift 2 in Xcode 7.3.1. But now I have open same application in Xcode 8.0 and perform changes. Some automatic changes are done and some errors and suggestions shown I have corrected them. But I am facing issue thatlet path = CGMutablePath()
CGPathMoveToPoint(path, nil, lineFrame.midX, lineFrame.midY)
CGPathAddLineToPoint(path, nil, lineFrame.origin.x + lineFrame.width / 2, lineFrame.origin.y)I tried to create
path, but shows error that
is unavailable: Use move(to:transform:)CGPathMoveToPoint is unavailable: Use addLine(to:transform:)CGPathAddLineToPoint
If anyone have solution, please let me know.