Mercurial > public > stock-charts
changeset 97:7601dfc0d1f5 1.2.3
Merge pull request #11 from denniscm190/dennis
Unwrap optional path.current
committer: GitHub <noreply@github.com>
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Wed, 16 Jun 2021 16:07:02 +0200 |
parents | 552685d27cbe (current diff) 468e6857c4ce (diff) |
children | 46e874c1f459 |
files | |
diffstat | 2 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Sources/StockCharts/LineChart/Helpers/LinePath.swift Sun Jun 06 18:51:59 2021 +0200 +++ b/Sources/StockCharts/LineChart/Helpers/LinePath.swift Wed Jun 16 16:07:02 2021 +0200 @@ -31,7 +31,7 @@ } // Append current point to an array. Later will be used for Drag Gesture - pathPoints.append(path.currentPoint!) + pathPoints.append(path.currentPoint ?? CGPoint(x: 0, y: 0)) } DispatchQueue.main.async {