John Daub

Swift Assertions

John Daub | May 21, 2018

How to use Swift's assertion functions?

In this screencast, we’ll learn how to use Swift’s assertion function to code defensively. By the end of this video, you’ll be able to use the assertion functions to help you write stronger, more robust code.

Questions we'll answer in this video:

- How can I ensure my code’s assumptions are correct?
- How can I enforce my code’s API constraints?
- What should I do to ensure I cover all possible paths of execution in my code?

For the More Curious...

Debugging and Reflection
BNR Guide to Swift
iOS & Swift Courses

Subscribers Only

Transcripts are for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Subscribers Only

Project files are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Need Help?

If you get stuck, try starting a discussion with Big Nerd Ranch experts in the community tab.

Skill Pack

This screencast is part of a skill pack called iOS Debugging.

Related Screencasts

Explore other screencasts related to this topic.