# HG changeset patch # User Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> # Date 1620493560 -7200 # Node ID 552963ee4dc4b1709561969a803d032b6668809a # Parent c37c93ba3f378b8eae54561435e57bd85fd73864 Fixing: Modifying state during view update diff -r c37c93ba3f37 -r 552963ee4dc4 Sources/StockCharts/LineChart/Helpers/LinePath.swift --- a/Sources/StockCharts/LineChart/Helpers/LinePath.swift Sat May 08 18:48:49 2021 +0200 +++ b/Sources/StockCharts/LineChart/Helpers/LinePath.swift Sat May 08 19:06:00 2021 +0200 @@ -31,14 +31,16 @@ } // Append current point to an array. Later will be used for Drag Gesture - pathPoints.append(path.currentPoint!) + DispatchQueue.main.async { + pathPoints.append(path.currentPoint!) + } } - self.pathPoints = pathPoints - return path } +// public func test + /* Get data -> normalize it -> 0 <= output <= 1 */ diff -r c37c93ba3f37 -r 552963ee4dc4 StockCharts.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate Binary file StockCharts.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate has changed