Mercurial > public > stock-charts
changeset 70:c19e9c03e09d
Fixing Modifying state during view update
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Sat, 08 May 2021 18:47:27 +0200 |
parents | 76a8e05b3266 |
children | c37c93ba3f37 |
files | Sources/StockCharts/LineChart/Helpers/LinePath.swift StockCharts.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate |
diffstat | 2 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Sources/StockCharts/LineChart/Helpers/LinePath.swift Sat May 08 18:45:16 2021 +0200 +++ b/Sources/StockCharts/LineChart/Helpers/LinePath.swift Sat May 08 18:47:27 2021 +0200 @@ -15,6 +15,7 @@ public func path(in rect: CGRect) -> Path { var path = Path() + var pathPoints = [CGPoint]() let normalizedData = normalize(data) let widthBetweenDataPoints = Double(width) / Double(normalizedData.count - 1) // Remove first point