CountdownLabel: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
Issue
This issue is getting after Xcode 12 update.
The issue is caused by the expression which needed to be break down into sub-expressions
Using release version : 4.0.1

Buid settings:
Proposed solution:
Replacing expression:
return c * $0 * $0 * $0 * $0 * $0 + b
with
return c * ($0 * $0 * $0 * $0 * $0) + b
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 13
- Comments: 15
@RanaHossam , just to fix this temporarily, you can use @mushthak 's commit in your podfile. Here is how to add the commit in your Pod file.
pod 'CountdownLabel', :git => 'https://github.com/mushthak/CountdownLabel.git', :commit => '800205db7400624568be2711986bda7a66fdfde1'
Please merge this. Same thing happening for me too.
Hey @hungHatto. The LTEasing.swift file from the LTMorphingLabel is up to date and can be used.
https://github.com/lexrus/LTMorphingLabel/blob/master/LTMorphingLabel/LTEasing.swift
public static func easeOutQuint(_ t: Float, _ b: Float, _ c: Float, _ d: Float = 1.0) -> Float { return { (f: Float) in return c * (pow(f, 5) + 1.0) + b }(t / d - 1.0) }
@mushthak @RanaHossam @iranjith4 just to fix this temporarily, you can use commit in your podfile. Here is how to add the commit in your Pod file
pod 'CountdownLabel', :git => 'https://github.com/linkstreet/CountdownLabel.git'
Hi, @iranjith4 I just install yours
but, why the time start from 01:12:00:00 + ⍺ and stop at 01:12:00:00??