Skip to content

Instantly share code, notes, and snippets.

@BeauNouvelle
Created August 6, 2018 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BeauNouvelle/7a508afa0d3007a45271d991a134efc7 to your computer and use it in GitHub Desktop.
Save BeauNouvelle/7a508afa0d3007a45271d991a134efc7 to your computer and use it in GitHub Desktop.
public func autoRun() {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.2) {
self.world.updateCells()
self.setNeedsDisplay()
self.autoRun()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment