Applies to:
- Xcode Extension
- Finder Extension
- Advanced Project Converter
- Offline Converter
Included in plans:
- Cloud
- Offline Converter
Since Swift 3, Apple has developed an algorithm to omit needless words when importing Objective-C code into Swift so that imported code adheres to the Swift API Design Guidelines.
For example, Xcode imports the following Objective-C code:
Into Swift as:
When you use the Swift Bridging Header file for calling Objective-C code from Swift, Xcode uses the same algorithm to import your Objective-C declarations into Swift. Please check out this article to learn more about how Xcode automatically generates interfaces for Objective-C files.
With this option turned off, Swiftify does not alter the method signatures so that the Objective-C code can call the converted Swift code seamlessly.Objective-C code:
Converted Swift code with this option turned on:
Converted Swift code with this option turned off:
To toggle this feature, open Preferences (⌘+,) => Converter and toggle the corresponding checkbox:
Comments
0 comments
Please sign in to leave a comment.