defer swift – what is defer in swift ?

By | July 22, 2016

defer swift – what is defer in swift ?

It’s similar to the finally{} black used in C++ and Java. That means the code in defer will run anyways no matter what.