After watching a lot of the WWDC videos and reading through the Swift iBook, I came away with the impression that CGFloat
was somewhat... legacy, due to the emphasis on Int
and Double/Float
. Perhaps somewhat comparable to NSString
vs String
.
I wrote a bit of code with the latter, and Double
won't compile on non-64 bit devices. Int
seems fine, though.
Should we still be using CGFloat
for all math? Has anyone found anything that would indicate we'd be able to use the native Swift numerics? Because right now they're essentially unusable outside of scripts.