Skip to content

Instantly share code, notes, and snippets.

@wizard1066
Created April 4, 2020 07:03
Show Gist options
  • Save wizard1066/a939a9d84dacf8d6a27f4e9c489f5bf3 to your computer and use it in GitHub Desktop.
Save wizard1066/a939a9d84dacf8d6a27f4e9c489f5bf3 to your computer and use it in GitHub Desktop.
abgwtp11
.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