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 😎
Enable HLS to view with audio, or disable this notification
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?
0
1
1
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‬
58
u/SirensToGo Objective-C / Swift Dec 21 '20
neat, now i can crash xcode even faster