How to rename the class name in swift?

前端 未结 7 1865
攒了一身酷
攒了一身酷 2021-02-12 03:33

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

7条回答
  •  星月不相逢
    2021-02-12 04:25

    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.

提交回复
热议问题