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 sample does not with with xcode6 beta4 #23

Open
Birkemose opened this issue Jul 29, 2014 · 4 comments
Open

Swift sample does not with with xcode6 beta4 #23

Birkemose opened this issue Jul 29, 2014 · 4 comments

Comments

@Birkemose
Copy link

Due to some changes in Xcode6 beta4, the Swift example does not work out of the box.
A line like
var a = CGFloat(aFixedValue)
results in an error saying CGFloat is not convertible to UInt8. It can be fixed with an extra cast
var a = CGFloat(Uint(aFixedValue))
but I doubt this is the right solution in the long run

@Birkemose
Copy link
Author

Actually the cast must be to Int, not UInt, or the Tetris game crashes

@mannewalis
Copy link
Contributor

Beta5 fixes some of these issues. I will do a code pass on this soonish and get it to build with Beta5.

@ricardoquesada
Copy link
Contributor

Justin, try Beta6 instead of Beta5, just in case.

@mannewalis
Copy link
Contributor

Sorry, I meant Beta6 :)

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

3 participants