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

swift 2.0 Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions #7

Closed
alexliubj opened this issue Sep 18, 2015 · 4 comments

Comments

@alexliubj
Copy link

Pulltomakesoup.swift file and location has this error:

let progressWithOffset: (Double, Double) -> Double = { offset, progress in
return progress < offset ? 0 : Double((progress - offset) * 1 / (1 - offset))

@alexliubj
Copy link
Author

Resolving this with replacing it by a function

func progressWithOffset(offset:Double, progress: Double) -> Double
{
return progress < offset ? 0 : Double((progress - offset) * 1 / (1 - offset))
}

@sekouperry
Copy link

Thanks for the fix.

@jiaowochunge
Copy link

seems like hasn't applied yet. the solution above has a little problem.the second parameter should be omitted.just add '_'

func progressWithOffset(offset:Double, _ progress: Double) -> Double
{
return progress < offset ? 0 : Double((progress - offset) * 1 / (1 - offset))
}

@Art3mS1d
Copy link
Contributor

Thanks, @alexliubj and @jiaowochunge . Now fix in the master. Pod also updated

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

4 participants