With closures I usually append [weak self] onto my capture list and then do a null check on self:
[weak self]
func myInstanceMethod() { let myClosure =
I use this template
class A{ func foo(){ func bar(_ this:A){ this.some(); } bar(self); } func some(){ } }