Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too long type-check #272

Open
NikKovIos opened this issue May 7, 2020 · 1 comment
Open

Too long type-check #272

NikKovIos opened this issue May 7, 2020 · 1 comment

Comments

@NikKovIos
Copy link

NikKovIos commented May 7, 2020

public static let discreteRotation: CAAnimation = {

Expression took 10541ms to type-check (limit: 300ms)

This static variable makes compiler to work long)

@NikKovIos
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant