Animate shortcuts reloading as well
This commit is contained in:
parent
d1c98006d3
commit
0a77be6ac5
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue