Using strongSelf is a way to verify that self not nil. When you have a closure that may be triggered at some point in the future, it is important to pass an instance of weak self so that you do not create a save loop while maintaining references to objects that have been de-initialized.
{[weak self] () -> void in if let strongSelf = self { strongSelf.doSomething1() } }
Essentially, you say that if I no longer exist, do not keep a link to it and do not perform an action on it.
source share