Skip to content

Instantly share code, notes, and snippets.

@nnzo
Created December 1, 2020 01:01
Show Gist options
  • Save nnzo/421f84ff9b1bb9a589249a235f1458c9 to your computer and use it in GitHub Desktop.
Save nnzo/421f84ff9b1bb9a589249a235f1458c9 to your computer and use it in GitHub Desktop.
swift timer
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
print("Timer fired!")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment