Closed amorde closed 2 years ago
@amorde I believe that could be the case, but can't reproduce so far.
Online converter: https://swiftify.me/rzzqxi Xcode Extension, "Convert Selection to Swift" command: https://take.ms/I82R6
Let me know how exactly did you get such results? Maybe that was a part of the larger conversion? Did you use the web converter, Xcode Extension, Advanced Project Converter, etc?
Ah apologies forgot to mention I am using the offline converter, and I verified my sample using the standalone application (not the Xcode extension)
Here's an exact repro - Open the included folder "swifty_constants" and run the offline converter on both the .h
and .m
by checking both. I noticed in the video there was only a .h
- maybe that's related?
@amorde Acknowledged. Yeah, this is reproducible when converting both the header and the source files together. Will take care.
@amorde Fixed (will be available since the next converter update).
Converter output:
// A comment about these keys blah blah blah something something something
let SomeConstantStringA = "SomeKeyString"
let SomeConstantStringB = "SomeOtherKeyString"
Input:
output:
Notice how the
let SomeConstantStringA
declaration is placed at the end of the comment instead of a new line.This only happens with the
@protocol SomeProtocol;
declaration above the constants.