Skip to content

Commit

Permalink
Fixed Issue 28 (#29)
Browse files Browse the repository at this point in the history
Changed Int to Double in quadCurvedPathWithPoints and quadClosedCurvedPathWithPoints.
  • Loading branch information
iRick92 authored and AppPear committed Dec 28, 2019
1 parent 03f9072 commit 524aec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftUICharts/LineChart/Line.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 524aec2

Please sign in to comment.