# HG changeset patch # User Dennis C. M. # Date 1623852422 -7200 # Node ID 7601dfc0d1f5ba44e26cd85d6eb1affd8fb5a342 # Parent 552685d27cbead4b17869a929325e1038908be78# Parent 468e6857c4ce16440e60b1f3e1b387fdb78b0549 Merge pull request #11 from denniscm190/dennis Unwrap optional path.current committer: GitHub diff -r 552685d27cbe -r 7601dfc0d1f5 Sources/StockCharts/LineChart/Helpers/LinePath.swift --- 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 { diff -r 552685d27cbe -r 7601dfc0d1f5 StockCharts.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate Binary file StockCharts.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate has changed