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

Unable to set Color value #186

Closed
Outcue opened this issue Jul 14, 2020 · 0 comments · Fixed by #196
Closed

Unable to set Color value #186

Outcue opened this issue Jul 14, 2020 · 0 comments · Fixed by #196
Labels
bug Something isn't working

Comments

@Outcue
Copy link
Contributor

Outcue commented Jul 14, 2020

Creating a Color using the following code generates and error:

Color(.black)

/Users/diskzero/inprogress/outcue/Tokamak/Sources/TokamakDemo/ShapeDemo.swift:24:7: error: referencing initializer 'init(integerLiteral:)' on 'ExpressibleByIntegerLiteral' requires that 'Color' conform to '_ExpressibleByBuiltinIntegerLiteral'
      Color(.red)
      ^
Swift.ExpressibleByIntegerLiteral:1:11: note: where 'Self' = 'Color'
extension ExpressibleByIntegerLiteral where Self : _ExpressibleByBuiltinIntegerLiteral {
          ^
/Users/diskzero/inprogress/outcue/Tokamak/Sources/TokamakDemo/ShapeDemo.swift:24:14: error: missing argument label 'integerLiteral:' in call
      Color(.red)
             ^
            integerLiteral: Build failed, check the build process output above.

This code compiles and displays properly using XCode 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

2 participants