AppCode 2020.2 release is just around the corner, and our first Beta build delivers an initial implementation of the Change Signature refactoring for Swift! Let’s take a closer look at it.
When you need to change the signature of a method, the usual flow is to rename all the method parts separately, such as parameter names, internal parameter names, and the method name itself. This already makes for too many repeated Rename refactorings.
But what if you need to also change the method return type, or the type for one of the method parameters? What if you need to also change the