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


Adding Custom Controls to Xcode Project from 3rd party source.


This question might be too broad but I want to see if I can get some answers to have a better concept understanding. I am using Swift in Xcode and I want to know when adding custom controls, for example like the downpicker, what is require to get it to work?


The directions states using Cocoapods but if I am downloading the files instead from the Manual install method do I need to import something like import UIKit in the Control file?

Unfortunately I am having trouble grasping the concept of applying custom controls from outside sources. I have not been successful applying outside code. Perhaps I need more help with applying the MVC model.

Thank you, Erik

Jason Teo
Jason Teo
Courses Plus Student 8,398 Points

Hi Erik,

I am not quite sure if this is what you're asking, but this might help you:


1 Answer

Hi Eric, I was working on a project recently dealing with Cocoapods. I wrote a post about how to install them (mostly as a reference for me) but it might help you. http://www.shanirivers.me/posts/installing-and-creating-cocoapods