Calling super inside an escaping closure is not a good idea.
It will necessarily create a retain cycle, because capturing super weakly is not supported.
Xcode is a bitch and won't warn you either.
Because of that, we have to create an auxiliary method to set fonts on the base class.
Calling
super
inside an escaping closure is not a good idea. It will necessarily create a retain cycle, because capturingsuper
weakly is not supported.Xcode is a bitch and won't warn you either.
Because of that, we have to create an auxiliary method to set fonts on the base class.