mirror of
https://github.com/neon443/NearFuture.git
synced 2026-11-30 20:24:48 +00:00
add success haptic and indentation
This commit is contained in:
1 file changed
+3
@@ -43,6 +43,9 @@ struct CompleteEventButton: View {
|
||||
if progress >= 1 {
|
||||
withAnimation { completeInProgress = false }
|
||||
viewModel.completeEvent(&event)
|
||||
#if canImport(UIKit)
|
||||
UINotificationFeedbackGenerator().notificationOccurred(.success)
|
||||
#endif
|
||||
timer.invalidate()
|
||||
progress = 0
|
||||
}
|
||||
|
||||