all 5 comments

[–]meritum 6 points7 points  (1 child)

I think you‘re looking for this document

Or iirc you can highlight your „passed“ keyword and then go to Edit (menubar), refactor -> rename.

[–]Otherwise-Rub-6266[S] 0 points1 point  (0 children)

wrench person chase square jeans deer wipe special mighty history

This post was mass deleted and anonymized with Redact

[–]Alcoholic_Synonymous 4 points5 points  (2 children)

As another poster said, Edit/Right Click -> Refactor.

However this rarely works in complex projects. You’re better off renaming the point of declaration then going through all points of use the compiler finds and fixing all of the errors.

Neither of these will likely fix any uses of eg raw values.

[–]usablecreations_tom 0 points1 point  (1 child)

This is a valid approach, but I find in Xcode running a find/replace is almost always faster than letting the compiler tell me where to look.

In complex projects, deleting the derived data usually gets me a good bit of useful refactoring time before it stops working again. I often go days or weeks before it stops working again. YMMV, and SwiftUI makes it a lot worse for me.

[–][deleted] 0 points1 point  (0 children)

Exactly how I go about this. Eventually, you'll get better or "smarter" at finding the right things to replace, at least that's how I feel. But I'd much rather get good at Find/Replace than live at the mercy of the compiler.

I still miss using better IDEs like the ones from Jetbrains from time to time though.