ios - How to rename the class name in swift? -
i trying rename class name in swift gives me error can't refector swift code
. want know best way rename file reflect in whole project
currently can't refactor in swift. however, can find menu > find , replace in project. (carefully)
edit: xcode 9 allows refactor.
highlight property/function , choose editor menu -> refactor -> rename
wait second or 2 xcode 9 scan project occurrences , type new name.
Comments
Post a Comment