Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
James Brown
2,095 PointsAre there no more classes as files in Swift?
From all of the tutorials on this site and others (particularly those to do with Sprite Kit which is where my interest lies) nobody appears to be creating, for instance, Sprite Nodes by adding a new file, they just seem to be declaring them in the code.
The reason I ask is I have a program I've been working on for a while in Objective-C but, as it is not finished, I would like to recreate it in Swift, and continue development. It's very confusing as the whole way in which files are imported into each other has changed, and I'm wondering if my nicely organised classes are now all for naught.
In fact, I'm having difficulty just getting an app to get past the pre-set title sheet that, unhelpfully, appears by default at the start of a SpriteKit game. It would be great if there was a post on what is different about starting a game in Xcode 6 as opposed to Xcode 5, it seems like some of the ViewController and App Delegate code has changed.
Any suggestions, and especially more tutorials about Sprite Kit with Swift would be fabulous. It would be great to see Space Cat made in Swift, to give us Sprite Kit learners a translation foundation with something we're already familiar with. Or even better something that show us how to use the Level Builder! :)
Cheers, James
BTW: There is no "Swift" in the options for Topics in the forum or in the dropdown menu at the bottom of this message form.
1 Answer
agreatdaytocode
24,757 PointsHello James,
I am happy to see that someone else shares my passion for swift. From my understanding Treehouse is in the process of creating more swift courses. You can always keep and eye on the roadmap. The past few weeks I have been surfing GitHub for open source swift projects. My advice is to do the same, currently if you search under "swift sprite kit" You should find about 90 different projects.
I hope this helps.
- Aaron