-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
For a given file A.m we want to create a file A.swift to replace it:
- Create
A.swiftwith the right properties and intializers - Port methods (from private utility methods to public ones*)
- write the swift version of method
fooinA.swift, not necessarily improving the code, but just translating it from objc to swift - remove
fooinA.m - stage new method in swift change and deleted lines only in
A.m - commit changes: Converting
footo swift - undo removal of
fooinA.m - move to the next method
- write the swift version of method
- Replace usages of
A.mforA.swifin the source code (and commit) - Remove
A.mandA.hfrom the project - Fix any remaining compile error
- Improve the current existing swift code and commit changes by one
Then reviewing the changes will be way easier by commit, as only the relevant conversions are set.
*: start with the private methods that don’t depend on other methods