Live Demo

Choose a code sample from the menu, or type your code to the input box. Then press [Convert] to generate Swift code.
You can also drag-and-drop your source file to the box.

Note: This demo NEVER send your code to the server. The conversion process is executed locally in your browser.

Objective-C

@interface MyClass - (void)hello; @end @implementation MyClass - (void)hello { NSLog(@"Hello the Swift World!"); } @end

Swift

The command-line version is also available for OS X. It is capable to analyze header files and provides more accurate conversion. See GitHub Repository.