You can watch this episode by subscribing to Cocoacasts Plus.

Working With Guard in Swift

Guard Patterns, Tips, and Tricks

Working With Guard in Swift
1 Exit Early With Guard Plus 08:17
2 Guard Patterns, Tips, and Tricks Plus 06:27

In the previous episode, we explored what the guard statement is, how it differs from the if statement, and when it's appropriate to use it. This episode takes it one step further. I show you several patterns I use on a daily basis that take advantage of the guard statement.

Instant and Unlimited Access
to 400+ Cocoacasts Tutorials

Monthly

$19 / month

Pay Once a Month
Access to Community
30 Day Money Back Guarantee

Yearly

$8.25 / month (billed annually)

Pay Once a Year and Save $129
Access to Community
30 Day Money Back Guarantee
Access to All Books