Too long type-check
Opened this issue · 1 comments
NikKovIos commented
public static let discreteRotation: CAAnimation = {
Expression took 10541ms to type-check (limit: 300ms)
This static variable makes compiler to work long)
NikKovIos commented
Replacing to
animation.values = [
0.0,
1.0 * .pi / 6.0,
2.0 * .pi / 6.0,
3.0 * .pi / 6.0,
4.0 * .pi / 6.0,
5.0 * .pi / 6.0,
6.0 * .pi / 6.0,
7.0 * .pi / 6.0,
8.0 * .pi / 6.0,
9.0 * .pi / 6.0,
10.0 * .pi / 6.0,
11.0 * .pi / 6.0,
2.0 * .pi
]
reduce build time from 10000 to 400