From 307f9636651ee3ffb2031c6dc89635de7bab5891 Mon Sep 17 00:00:00 2001 From: Jesse Armand Iswaraputra Date: Mon, 10 Dec 2018 18:02:12 +0800 Subject: [PATCH] Fixed CGFloat degrees to radians conversion It should be .pi instead of .greatestFiniteMagnitude --- Animo/KeyframeValueConvertible.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Animo/KeyframeValueConvertible.swift b/Animo/KeyframeValueConvertible.swift index c2ed53c..4fe7be5 100644 --- a/Animo/KeyframeValueConvertible.swift +++ b/Animo/KeyframeValueConvertible.swift @@ -296,7 +296,7 @@ extension CGFloat: FloatingPointKeyframeValueConvertible { public var degreesToRadians: CGFloat { - return CGFloat(Double.greatestFiniteMagnitude * Double(self) / 180.0) + return CGFloat(Double.pi * Double(self) / 180.0) } }