Learn how to use SnapKit to easily create programmatic auto layout constraints. Instead of using NSLayoutConstraint, you’ll use SnapKit’s DSL to write short but powerful lines of code to declare your autolayout constraints. We will be doing this in a Swift Xcode project.

We’ll be installing SnapKit with the Cocoa Pod set up so if you missed the video on how to install and set up Cocoapods, check it out here:

Related Links:

Xcode project, source code and video download:

GitHub Page

SnapKit Docs

For more tutorials on how to build iPhone apps, make sure you subscribe and visit my site where you’ll find a community of like minded learners! Learning something new is always more fun with other people!


CodeWithChris is dedicated to teaching beginners and non-programmers all about building iOS apps. On the site, you’ll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have successfully picked up Swift, Objective-C, Xcode and app building from my course and materials!

Intro & Outro music
“Heartbreaker” by Jahzzar (