comparison Sources/StockCharts/LineChart/Helpers/LinePath.swift @ 74:cda2b6a398a7

Fixing: Modifying state during view update
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Sat, 08 May 2021 19:10:58 +0200
parents cc59a30661f7
children b0eddc386535
comparison
equal deleted inserted replaced
73:cc59a30661f7 74:cda2b6a398a7
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 /*