I have created a new Single View Application Project in Xcode 6 beta version. I want to rename swift class from ViewController.swift
to some other name. But when I select Refactor -> Rename, it gives error Xcode can only refactor C and Objective-C code
.
Any idea how to rename swift class in Xcode 6?
UPDATE:
Finally Xcode 9 is supporting Refactoring for Swift. It took Apple 3 years to add this basic feature. Refactoring
You can change name of a class in File Inspector at the right side of Xcode6.
That's all! Previously I manually rename the class name in the class file.