Peter Friese on X: "@twostraws Make Xcode's Assistant aware of your ViewModels, Views, etc:
defaults write https://t.co/EXmOSXOdnH.dt.Xcode IDEAdditionalCounterpartSuffixes -array-add "ViewModel" "View" "Screen"
Quite handy when working with SwiftUI:"
Make Xcode's Assistant aware of your ViewModels, Views, etc:
defaults write com.apple.dt.Xcode IDEAdditionalCounterpartSuffixes -array-add "ViewModel" "View" "Screen"
Quite handy when working with SwiftUI:
Most of these "offend a programmer with a single tweet" messages are weird. What's a good Swift/Xcode tip you can fit in a single tweet?
I'll start: if you have a method that returns a tuple, you can destructure it like this: let (username, password) = getCredentials()
Make Xcode's Assistant aware of your ViewModels, Views, etc:
defaults write com.apple.dt.Xcode IDEAdditionalCounterpartSuffixes -array-add "ViewModel" "View" "Screen"
Quite handy when working with SwiftUI: