Tag Archives: try catch

defer swift – what is defer in swift ?

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.