LTMorphingLabel icon indicating copy to clipboard operation
LTMorphingLabel copied to clipboard

Xcode12.0 error

Open zhaoqt521 opened this issue 6 years ago • 2 comments

The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions

zhaoqt521 avatar Sep 17 '20 05:09 zhaoqt521

public static func easeInQuint(_ t: Float, _ b: Float, _ c: Float, _ d: Float = 1.0) -> Float {
        return {
            var a = c * $0
            a = a * $0
            a = a * $0
            a = a * $0
            a = a * $0
            return a + b
//            return c * $0 * $0 * $0 * $0 * $0 + b
        }(t / d)
    }

jseanj avatar Sep 17 '20 06:09 jseanj

Fixed in the latest commit.

Thank you, @jseanj

lexrus avatar Sep 20 '20 02:09 lexrus