Created
December 8, 2016 14:10
-
-
Save MylesCaley/2e379843b4dca9294a075f751b80e19c to your computer and use it in GitHub Desktop.
pattern for weak closure
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
{ [weak self] (_) in | |
guard let _ = self else { return } | |
self!. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment