Skip to content

Commit

Permalink
Fix compiler check error
Browse files Browse the repository at this point in the history
Compiler isn't able to build this library on Xcode 14. Details on original library PR: ChartsOrg#4836
  • Loading branch information
gusenico committed Oct 7, 2022
1 parent ee24293 commit 62aa974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Charts/Animation/ChartAnimationEasing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ internal struct EasingFunctions
let s: TimeInterval = 1.70158
var position: TimeInterval = elapsed / duration
position -= 1.0
return Double( position * position * ((s + 1.0) * position + s) + 1.0 )
return Double( position * position * ((s + Double(1.0)) * position + s) + Double(1.0) )
}

internal static let EaseInOutBack = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in
Expand Down

0 comments on commit 62aa974

Please sign in to comment.