Animate shortcuts reloading as well

This commit is contained in:
Davide De Rosa 2022-04-21 11:44:49 +02:00
parent d1c98006d3
commit 0a77be6ac5
1 changed files with 6 additions and 1 deletions

View File

@ -71,9 +71,14 @@ struct ShortcutsView: View {
.toolbar { .toolbar {
themeCloseItem(presentationMode: presentationMode) themeCloseItem(presentationMode: presentationMode)
}.sheet(item: $modalType, content: presentedModal) }.sheet(item: $modalType, content: presentedModal)
// reloading
.onAppear { .onAppear {
intentsManager.reloadShortcuts() intentsManager.reloadShortcuts()
}.onReceive(intentsManager.shouldDismissIntentView) { _ in }.animation(.default, value: intentsManager.isReloadingShortcuts)
// IntentsUI
.onReceive(intentsManager.shouldDismissIntentView) { _ in
modalType = nil modalType = nil
} }
} }