Mercurial > public > stock-charts
comparison Sources/StockCharts/LineChart/Helpers/LinePath.swift @ 66:ddbfbca9bc52
Comment modify state var while path is created
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Sat, 08 May 2021 18:23:12 +0200 |
parents | 127af64e264e |
children | 76a8e05b3266 |
comparison
equal
deleted
inserted
replaced
65:2b23d1f2d2d9 | 66:ddbfbca9bc52 |
---|---|
28 let y = y * Double(height) | 28 let y = y * Double(height) |
29 path.addLine(to: CGPoint(x: x, y: y)) | 29 path.addLine(to: CGPoint(x: x, y: y)) |
30 } | 30 } |
31 | 31 |
32 // Append current point to an array. Later will be used for Drag Gesture | 32 // Append current point to an array. Later will be used for Drag Gesture |
33 pathPoints.append(path.currentPoint!) | 33 // pathPoints.append(path.currentPoint!) |
34 } | 34 } |
35 | 35 |
36 return path | 36 return path |
37 } | 37 } |
38 | 38 |