Convert the code one file at a time. If you code base is following conventions then you will generally have one Objective-C class per file, with maybe some enumerations and protocols hitching a ride as well.
In general the approach to conversion is:
- Create a new .swiftfile with the same name as the Objective-C.mfile (or the.hfile if no.m) Drag files around in Xcode so that the.m,.hand.swiftfiles are next to each other.
- Copy the Objective-C code from both the .hand the.mfile into the.swiftfile. Consider it a framework for the conversion.
- Convert the Objective-C code into Swift until you see no red dots or yellow triangles in Xcode.
- Delete the old .hand.mfiles (they are recoverable from source code control, right?)
- Compile and fix any introduced bridging problems.
- Run tests and commit
Then move to the next file. Easy.