4 ms·
Xcode doesn't go that far but has the plus button in the top-right corner. Clicking it will open a list of snippets. Most language constructs are in there, if/s
by bartvk 5y ago
Xcode doesn't go that far but has the plus button in the top-right corner. Clicking it will open a list of snippets. Most language constructs are in there, if/switch/class/struct/etc.
Weird enough I never got used to it. My desire for templates is more on the implementation level. For example when I need to draw a circle, I google for "SwiftUI custom shape", then copy/paste a working example, and from there, edit the "template" until I've got something going.