Hi,
I would like to migrate objective C Project to swift project completely in XCode.
Is it possible ?
Thanks
Hi,
I would like to migrate objective C Project to swift project completely in XCode.
Is it possible ?
Thanks
Not at present. You're going to have to rewrite it yourself.
You have to rewrite but instead of starting from scratch:
Keep both projects open
Comment out all of the Obj-C files
/* this is how you comment out multiple lines*/
Then copy and paste onto the Swift files
Un-comment out section by section of your code and see what errors you get.
By reading the free Ibook (A programmers guide to Swift, or something of the like) you can see where the basic syntax differences are and ajust your code accordingly
For any more complex code structuers that the book or you can't figure out how to translate to Swift; take those sections and ask in the fourms how to translate them and I'm sure you'll get help.
Another option is to use Objective C and Swift in the same project. That way you can take your time migrating code over to Swift, no need to do it all at once.
There was a WWDC video that explained how to do this called "Improving Your Existing Apps with Swift".