Reputation: 4803
When I was truing to rename my class in swift it will show error like below.
I just want to know that, in Objective C it allow us to rename class name, then why it not available in Swift, or any other way to do the same.
If there is any good way then please suggest me.
Thanks.
Upvotes: 9
Views: 2370
Reputation: 59496
It can rename a method, function, variable... but only within the same file though.
To do it
But it doesn't updated references from other files. For this we need to wait for a future version of Xcode.
Upvotes: 12