Applies to:
- Xcode Extension
- Finder Extension
- Advanced Project Converter
- Offline Converter
Included in plans:
- Cloud
- Offline Converter
In most cases, the converter maintains the original order of declarations.
However, sometimes we need to make an exception for static methods, global variables, and constants: the converter moves such declarations to the top of the file to place them outside a class declaration.
Disabling this option allows for maintaining the exact original order of all declarations.
If your Objective-C code extensively uses #if/#else/#endif
directives (like the tricky case demonstrated below), disabling this option may lead to better results.
Original 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.