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