From 0a77be6ac5326e6538767680851bfd4191ba242e Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Thu, 21 Apr 2022 11:44:49 +0200 Subject: [PATCH] Animate shortcuts reloading as well --- Passepartout/App/Views/ShortcutsView.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Passepartout/App/Views/ShortcutsView.swift b/Passepartout/App/Views/ShortcutsView.swift index 81a42f28..bde4108d 100644 --- a/Passepartout/App/Views/ShortcutsView.swift +++ b/Passepartout/App/Views/ShortcutsView.swift @@ -71,9 +71,14 @@ struct ShortcutsView: View { .toolbar { themeCloseItem(presentationMode: presentationMode) }.sheet(item: $modalType, content: presentedModal) + + // reloading .onAppear { intentsManager.reloadShortcuts() - }.onReceive(intentsManager.shouldDismissIntentView) { _ in + }.animation(.default, value: intentsManager.isReloadingShortcuts) + + // IntentsUI + .onReceive(intentsManager.shouldDismissIntentView) { _ in modalType = nil } }