Skip to content

Instantly share code, notes, and snippets.

@hungtruong
Last active May 2, 2019 04:16
Show Gist options
  • Save hungtruong/9ebc2061b51cd3b13b3acffbb9930398 to your computer and use it in GitHub Desktop.
Save hungtruong/9ebc2061b51cd3b13b3acffbb9930398 to your computer and use it in GitHub Desktop.
if let _ = message["sendReminder"] {
[1, 2, 3, 4, 5].forEach { count in
DispatchQueue.main.asyncAfter(deadline: .now() + count) {
self.playNotification()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment