defer in Swift

defer is used to define the set of statements that should be executed just before the control leaves the current scope of execution. The statements defined in defer block are executed irrespective of how the execution control leaves the scope in which defer is defined. The statements defined in defer block are executed just before… Continue reading defer in Swift