Last year Swift 2.0 was introduced bringing a multitude of new features to the Swift programming language.
The Guard and Defer control statements were added with Swift 2.0 and Nate Cook has written a nice tutorial on the two statements.
In the tutorial Nate explains both statements in depth, and shows how they can be used to streamline your code with included code examples.
You can find the tutorial on the NSHipster blog.
A nice straightforward guide to the guard and defer statements.
Original article: Tutorial: Using The Guard And Defer Statements In Swift 2
©2016 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.