Created
February 20, 2019 01:06
-
-
Save ksoftllc/696724b5d85f17a9e848d7093dc8ad3e to your computer and use it in GitHub Desktop.
A print statement to document when a class instance is deallocated from memory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if DEBUG | |
deinit { | |
print("\(String(describing: self)) deinit") | |
} | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment