Created
April 4, 2020 07:03
-
-
Save wizard1066/a939a9d84dacf8d6a27f4e9c489f5bf3 to your computer and use it in GitHub Desktop.
abgwtp11
This file contains 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
.onReceive(resetPublisher, perform: { (_) in | |
self.showingReset = true | |
}) | |
Spacer().alert(isPresented:$showingReset) { | |
Alert(title: Text("Reset Sure?"), message: Text("Zudoku Reset?"), primaryButton: .destructive(Text("Reset")) { | |
for loop in 0 ..< self.textValue.count * self.textValue.count { | |
self.textText[loop] = "" | |
self.textColors[loop] = Color.clear | |
} | |
self.timerText = 0 | |
}, secondaryButton: .cancel()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment