Welcome to Part 12 of my blog series about game development.
Today I'll show how to combine SWIFT with Objective-C code. There is no need to migrate all of your existing code to SWIFT. You’ll not sell one App more, if this is the only improvement of your new version. Not to mention all the possible new bugs you might include during the migration. A better strategy could be developing new code in SWIFT and keep existing code in Objective-C.
Prerequisite is XCode 6.1!
An updated version of this article for XCode 6.3 and SWIFT 1.2 can be found in my main Blog here.
I’ll show two scenarios:
- calling SWIFT from Objective-C
- calling Objective-C from SWIFT