Conversation

Anyone actually use Xcode's Code Snippets library? Or is everyone using 3rd party apps these days?

3
0
0
@sideshow_boz I use the Xcode one — generally for the same snippets that I can’t bother to remember, over and over again 😛

“Why waste memory loading a third-party app if the built-in one does the job for you?” is my motto.
1
0
2

@sideshow_boz I have 1 (one) snippet in there to pass file:line: along with XCTest helper functions.

Since I found out that Xcode does a better job auto-completing them as I type, I do actually consider putting more in there.

Do you have anything in the library?

2
0
0

@ctietze I like how I can bring it up with one keyboard shortcut, but the UI could be better (and syncing)…curious cuz *might* make something here, but if no one uses it, what’s the point 😂

0
0
0

@TheSwiftDojo yea, it feels like a feature that’s generally underused, which means Apple doesn’t have incentive to make it better (chicken and egg issue I guess)

1
0
0

@f yea, same, it’s real nice to bring up the snippets library with one keyboard command, but Xcode’s snippets library is also underwhelming (also syncing)…I ask because I’m tempted to do something here 🥲

0
0
0

@TheSwiftDojo oh, I meant Xcode’s snippet library feels underused

0
0
0

@ctietze @sideshow_boz I use it for pinning Auto Layout constraints and for test class templates.

1
0
0

@dasdom @ctietze interesting, I highly prefer using IB for auto layout, but I haven’t done UIKit in a while now…

1
0
0

@sideshow_boz I've tried programmatic auto layout in a project and -- this is masochism, @dasdom !!

2
0
0

@ctietze @dasdom yea, I remember the initial release was super verbose…it was much easier to use after Apple introduced the anchor API…never used the ASCII art way though 😅

0
0
0

@ctietze @sideshow_boz @dasdom yes, a code versus Storyboards discussion! Thought they were gone. We have been using PureLayout, then https://github.com/roberthein/TinyConstraints for some years now, which takes away most of the verbosity.

1
0
0

@WLBORg @ctietze @dasdom oh nice, do you still use TinyConstraints? Seems like it hasn’t been updated in a while, but then there hasn’t really been any changes recently to auto layout…

0
0
0