We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
The text was updated successfully, but these errors were encountered:
UIColor
Color.init(_:UIColor)
Successfully merging a pull request may close this issue.
Creating a Color using the following code generates and error:
Color(.black)
This code compiles and displays properly using XCode 11.
The text was updated successfully, but these errors were encountered: