It depends.
Darko D.
1

That’s true if the desired behavior is to always run the business logic inside the closure, but I don’t see a common use case for doing this. If something needs to run independent of the view controller, I may consider making a singleton object.

Like what you read? Give Leo Feng a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.