Mercurial > public > stock-charts
comparison Sources/StockCharts/LineChart/Helpers/LinePath.swift @ 69:76a8e05b3266
Fixing bug append path points while view is rendered
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Sat, 08 May 2021 18:45:16 +0200 |
parents | ddbfbca9bc52 |
children | c19e9c03e09d |
comparison
equal
deleted
inserted
replaced
68:34844d649ed7 | 69:76a8e05b3266 |
---|---|
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 |