comparison Sources/StockCharts/LineChart/Helpers/LinePath.swift @ 75:b0eddc386535

Modifying state during view update fixed
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Sat, 08 May 2021 19:13:14 +0200
parents cda2b6a398a7
children 468e6857c4ce
comparison
equal deleted inserted replaced
74:cda2b6a398a7 75:b0eddc386535
29 let y = y * Double(height) 29 let y = y * Double(height)
30 path.addLine(to: CGPoint(x: x, y: y)) 30 path.addLine(to: CGPoint(x: x, y: y))
31 } 31 }
32 32
33 // Append current point to an array. Later will be used for Drag Gesture 33 // Append current point to an array. Later will be used for Drag Gesture
34 // pathPoints.append(path.currentPoint!) 34 pathPoints.append(path.currentPoint!)
35 } 35 }
36 36
37 // DispatchQueue.main.async { 37 DispatchQueue.main.async {
38 // self.pathPoints = pathPoints 38 self.pathPoints = pathPoints
39 // } 39 }
40 40
41 return path 41 return path
42 } 42 }
43 43
44 /* 44 /*