Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jacobsapps/7af43af300f90583230d902129aa0681 to your computer and use it in GitHub Desktop.
Save jacobsapps/7af43af300f90583230d902129aa0681 to your computer and use it in GitHub Desktop.
.onTapGesture {
showButton = true
hideSkipButtonTask?.cancel()
hideSkipButtonTask = Task {
try await Task.sleep(for: .seconds(2))
try Task.checkCancellation()
showButton = false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment