hi. since you never changed the quit button, is there any particular reason the action var was a…
Dave Kliman
1

This is a good point, since it is never updated, it does not need to be a closure, but instead we could have went with making a hud protocol and handling the quit action through that. Since this was more of a beginner level tutorial, the idea was to introduce the concept of closures to the reader.

Thanks for the question

Show your support

Clapping shows how much you appreciated Marc J Vandehey’s story.