From 28aa9a468d582cd1e287a0d47657cb4f5d77a1df Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 8 Mar 2024 17:23:38 +0800 Subject: [PATCH] Reduce toast display time --- .../App/Views/Profile/PushNotificationSettingsView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/Profile/PushNotificationSettingsView.swift b/apple/OmnivoreKit/Sources/App/Views/Profile/PushNotificationSettingsView.swift index 68082a4af..aaf50a9cd 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Profile/PushNotificationSettingsView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Profile/PushNotificationSettingsView.swift @@ -210,7 +210,7 @@ } .onChange(of: viewModel.operationStatus) { newValue in if newValue == .success || newValue == .failure { - DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(2000)) { + DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(1000)) { viewModel.showOperationToast = false } }