From 524aec2a04b1fdd6fafbeae33ed34dc6b8064d77 Mon Sep 17 00:00:00 2001 From: Ricky Cai Date: Sat, 28 Dec 2019 19:00:48 +1100 Subject: [PATCH] Fixed Issue 28 (#29) Changed Int to Double in quadCurvedPathWithPoints and quadClosedCurvedPathWithPoints. --- Sources/SwiftUICharts/LineChart/Line.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SwiftUICharts/LineChart/Line.swift b/Sources/SwiftUICharts/LineChart/Line.swift index 48217896..4681fb2b 100644 --- a/Sources/SwiftUICharts/LineChart/Line.swift +++ b/Sources/SwiftUICharts/LineChart/Line.swift @@ -104,7 +104,7 @@ extension CGPoint { } } extension Path { - static func quadCurvedPathWithPoints(points:[Int], step:CGPoint) -> Path { + static func quadCurvedPathWithPoints(points:[Double], step:CGPoint) -> Path { var path = Path() if (points.count < 2){ return path @@ -123,7 +123,7 @@ extension Path { return path } - static func quadClosedCurvedPathWithPoints(points:[Int], step:CGPoint) -> Path { + static func quadClosedCurvedPathWithPoints(points:[Double], step:CGPoint) -> Path { var path = Path() if (points.count < 2){ return path