Xcode can only refactor C and Objective-C code. How to rename swift class name in Xcode 6? Xcode can only refactor C and Objective-C code. How to rename swift class name in Xcode 6? ios ios

Xcode can only refactor C and Objective-C code. How to rename swift class name in Xcode 6?


You can change name of a class in File Inspector at the right side of Xcode6.

  • open your class
  • go to File Inspector > Identify and type section
  • rename existing class in "name" field.

That's all! Previously I manually rename the class name in the class file.


I've been using Find>Find & Replace in Project, it's not perfect but it works.


I use this way:

  • You can positioning the cursor on the variable that you want rename
  • Select Editor - Edit all in Scope (^⌘E)
  • Rename the variable and automatically all variable occurrences is edit