Created
April 9, 2025 07:23
-
-
Save jacobsapps/7af43af300f90583230d902129aa0681 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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