r/iOSProgramming • u/VincentPradeilles • Dec 21 '20
Solved! Did you know? In Xcode you can now access refactoring features simply with a Command + click on a type 😎
58
u/SirensToGo Objective-C / Swift Dec 21 '20
neat, now i can crash xcode even faster
10
u/well___duh Dec 21 '20
My biggest pet peeve with xcode for about 3 years now, you can't rename anything more than once.
Just try it:
Rename anything and see that xcode allows for this to happen
Try to rename something else (or the same thing, doesn't matter). Xcode will hang forever.
4
Dec 21 '20
I haven’t been able to do that since swift was released. Before Swift, Objective-C programming was really reliable with the Xcode convenience tools but it all went down hill for me in 2014.
2
6
u/XmasRights Dec 21 '20
Love this feature - HATE that it puts the initialiser before the property declarations. WHO DOES THAT?!
4
3
2
2
u/FrozenPyromaniac_ Dec 21 '20
Yep, they really leaned into it with swiftui. You can quickly extract sub views, embed views in stacks and some more stuff
2
1
Dec 22 '20
Yeah, it was possible for a while but if it works at all, it's still crap. Mostly it simply doesn't work.
0
u/VincentPradeilles Dec 23 '20
To learn a few more tricks about Xcode’s refactoring tool 👉 https://youtu.be/zZoiqQhHUCs‬
13
u/MankAndInd Dec 21 '20
It’s weird that it adds constructor above the class variable declarations. Don’t most people put variable declarations first?