ObjectiveC2Swift
p/objectivec2swift
A tool that converts Objective-C to Swift
Ali R. Tariq
ObjectiveC2Swift — A tool that converts Objective-C to Swift
Featured
18
Replies
Ali R. Tariq
For anyone who's had to convert Objective-C to Swift, this tool is a welcome breeze. From my early trials and what others have said, it does a fairly good job. Of course, with Swift changing so fast, the question is whether this converter will stay relevant. Here's hoping it does!
高手놀리밑™
Pretty cool tool :)
Roman
Second Ali here. Truly simple and instant conversion. I've spoken to the guys there and a big update is coming soon.
andrew
Hey Ali, love the convertor, seems to work great! Was wondering when I'd choose to use this over Xcode's "Convert to Latest Swift Syntax". Does it use a different scheme to convert the code? The website is a little sparse on details
Alex Petuschak
@andrew_breck XCode is only capable of converting code from old (outdated) version of Swift to a new one. It has never had an ability to convert Objective-C code to Swift (although we do plan to integrate our tool with XCode in future).
Allan Zhang
What a fantastic tool, thanks for making this! Are there any plans to build a reverse converter that takes Swift to Objective-C? It would be incredibly helpful to many developers I know (including me) who aren't very adapt at Swift but would love to use the new Swift repos popping up everyday.
Sebastian BO
Doesn't work to well, is it because of the latest Swift? Tried converting our entire Objective C project..
Alex Petuschak
@sebastianbo91 Converting entire project is always a challenge. We're working hard to minimize the number of issues, and yes - there are a lot of ongoing changes due to preparations to the Swift 3 release. I've reviewed your project and released an update to our converter, with more than half of your issues automatically solved :)
Angela Yu
This is awesome. I'll continue my love affair with Objective-C for a little while longer thanks to you guys.
Randy
You have no idea (just kidding you probably know better then me) how much time this saves. Thanks for sharing!!! 💯💯💯
Karthik
Hey tats a neat one. But with swift evolving too quickly I guess it ll be hard to keep up isn't it?
Alex Petuschak
@karthik2502 It have been difficult to begin from scratch, but now the development is going on very smoothly! Adopting to Apple's changes to Swift is unavoidable, but such relatively small modifications are usually easy to knock off.
Nikhil D'Souza
Great job! I found it pretty accurate.
Tareyev Gregory
Nice idea, perfect tool for objective-c developers! Keep it up!
Mark Zgaljic
This is fantastic, thanks.
Alex Petuschak
A reverse (Swift to Objective-C) converter will definitely follow. As soon as we have a full feature set (including conversion of full XCode project), we’ll be working on the reverse converter.
Alex Petuschak
We are happy to announce major update to Swiftify (https://www.objectivec2swift.com). From now on, you can convert full files and even XCode projects! The following features are now supported: • Join .h and .m files into .swift file(s); • Merge declarations and implementations of classes, methods and properties; • Convert XCode project file (by replacing .h and .m file references with converted .swift file references).
Alex Petuschak
Thanks to all members of our community that the tool has evolved over years. Now we have a fully featured Offline version including Xcode, Finder extensions and a fully featured macOS IDE for gradual conversion of Objective-C projects to Swift: https://www.producthunt.com/post...