From a9193a791601c07d8b4f34bb43b351e97d1b20a7 Mon Sep 17 00:00:00 2001 From: Emrah Korkmaz Date: Wed, 8 Jun 2022 10:27:13 +0300 Subject: [PATCH] Add double mark for compiler check related with issue #4835 --- Source/Charts/Animation/ChartAnimationEasing.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Charts/Animation/ChartAnimationEasing.swift b/Source/Charts/Animation/ChartAnimationEasing.swift index 58b0b632d8..a6453d9e0c 100644 --- a/Source/Charts/Animation/ChartAnimationEasing.swift +++ b/Source/Charts/Animation/ChartAnimationEasing.swift @@ -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