Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nspeet
Created October 4, 2019 16:46
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 nspeet/23f6bd8d1042f7c7fe58e496d2ee1beb to your computer and use it in GitHub Desktop.
Save nspeet/23f6bd8d1042f7c7fe58e496d2ee1beb to your computer and use it in GitHub Desktop.
let timer = Timer.scheduledTimer(timeInterval: 5.0, target: self, selector: #selector(updateData), userInfo: nil, repeats: true)
@objc func updateData() {
print("update data here and then display!")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment