From 570bf83c2d2ea26eafdeb60e5ab39fbf5f26e7ad Mon Sep 17 00:00:00 2001 From: Ela Date: Mon, 6 Sep 2021 17:57:07 +0530 Subject: [PATCH] FIX: Type check expression --- CountdownLabel/LTMorphingLabel/LTEasing.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CountdownLabel/LTMorphingLabel/LTEasing.swift b/CountdownLabel/LTMorphingLabel/LTEasing.swift index d265652..291b45d 100644 --- a/CountdownLabel/LTMorphingLabel/LTEasing.swift +++ b/CountdownLabel/LTMorphingLabel/LTEasing.swift @@ -18,7 +18,7 @@ public struct LTEasing { public static func easeOutQuint(_ t: Float, _ b: Float, _ c: Float, _ d: Float = 1.0) -> Float { return { - return c * ($0 * $0 * $0 * $0 * $0 + 1.0) + b + return c * (pow($0, 5) + 1.0) + b }(t / d - 1.0) }