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

Two Swift Errors #40

Open
mstolin opened this issue Jul 17, 2015 · 1 comment
Open

Two Swift Errors #40

mstolin opened this issue Jul 17, 2015 · 1 comment

Comments

@mstolin
Copy link

mstolin commented Jul 17, 2015

Colours/Colours.swift:148:38: Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions

// Transfrom XYZ to L*a*b
var deltaF: TransformBlock = { f in
   return (f > pow((6.0/29.0), 3.0)) ? pow(f, 1.0/3.0) : (1/3)*pow((29.0/6.0), 2.0) * f + 4/29.0
}

Colours/Colours.swift:44:41: 'NSString' is not implicitly convertible to 'String'; did you mean to use 'as' to explicitly convert?

var scanner = NSScanner(string: newHex)

Tested on iOS Simulator with iOS 8.4

@ghost
Copy link

ghost commented Oct 12, 2015

The first error already have an issue: #35

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