Swift is coming to PaintCode(paintcodeapp.com) |
Swift is coming to PaintCode(paintcodeapp.com) |
Until official release, though, Apple may make huge breaking changes (change keywords, tweak the grammar, maybe drop a feature or two. For example, do we really need trap on overflow for integers in what, in the end, is a compiled language?)
I emailed Paintcode asking this same question. Will post if I get a response.
The graphics code they generate is mostly just using these CGContext APIs: https://developer.apple.com/library/ios/documentation/Graphi...
Mapping to the Swift counterparts should be straightforward.
On a more serious note, Apple has a practice of cooperating with a small selection of developers (who sign a bunch of scary NDA's) when testing new technologies.
1) already had a code generator for Objective-C
2) already had infrastructure for alternate code generators (they also support C#)
3) Swift and Objective-C share the same libraries and have similar semantics where it counts
4) Writing code generators isn't really all that difficult
It's perfectly believable that they banged out enough of a first-cut at this to make an announcement within a day or two of the Swift release.
You know Swift is just so natural to both Objective-C, Java, Scala, C# etc. devs already, and so much simpler than Objective-C, I have the feeling we'll see the fastest adoption of a brand new language in the history of computing here.