Mercurial > public > stock-charts
changeset 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 | 21fa5c3ef5ad |
files | Sources/StockCharts/LineChart/Helpers/LinePath.swift StockCharts.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Sources/StockCharts/LineChart/Helpers/LinePath.swift Sat May 08 19:10:58 2021 +0200 +++ b/Sources/StockCharts/LineChart/Helpers/LinePath.swift Sat May 08 19:13:14 2021 +0200 @@ -31,12 +31,12 @@ } // Append current point to an array. Later will be used for Drag Gesture -// pathPoints.append(path.currentPoint!) + pathPoints.append(path.currentPoint!) } -// DispatchQueue.main.async { -// self.pathPoints = pathPoints -// } + DispatchQueue.main.async { + self.pathPoints = pathPoints + } return path }