I am trying to rename the class name in swift but it gives me error Can\'t refector swift code
. I want to know the best way to rename a file that will reflect in t
After doing what @Caroline has pointed out, you should also change the name of your .swift
file because it does not change using Find > Find and replace...
. For doing that, you can click on the name of a .swift
class and rename it as you want.
I am using XCode 8
and it is the best option I could find to change the name of my class in the whole project.