mirror of
https://github.com/neon443/NearFuture.git
synced 2026-03-11 06:49:12 +00:00
improve notification handling
fix crash on ocmpleting events
This commit is contained in:
@@ -35,7 +35,7 @@ struct CompleteEventButton: View {
|
||||
progress = 0
|
||||
|
||||
timer = Timer(timeInterval: 0.02, repeats: true) { timer in
|
||||
DispatchQueue.main.sync {
|
||||
DispatchQueue.main.async {
|
||||
guard completeInProgress else { return }
|
||||
guard let timer = self.timer else { return }
|
||||
guard timer.isValid else { return }
|
||||
|
||||
Reference in New Issue
Block a user