Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Delegates in Swift 2 Delegation in iOS Implementing a Login Screen with Delegates

Using Code Snippet

At around 5 35 mark, Pasan simply drags and drops a code snippet. I try to do the same but can not find the same code snippet as him. He drags the Alert code snippet. I can't find it and is there a way of finding the code snippet you want?

1 Answer

Jeroen de Vrind
Jeroen de Vrind
29,772 Points

He made this code snippet himself i think. You can search codesnippets with the searchbar at the bottom in the code snippet library (second button). If you want to make a codesnippet yourself, select a piece of code and while pressing shift, drag this selection to the code snippet library. A view pops up where you can set a title and other stuff for the code snippet.