Get Updates By E-mail 

Article Written By:
Johann Dowa

Tutorial: Using The Guard And Defer Statements In Swift 2

  •  
  •  
  •  
  •  
  •  

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments