Animate Vault detail editors
This commit is contained in:
1 parent
914911ca9a
commit
e263edca68
1 file changed
+6
@@ -124,6 +124,8 @@ struct RootView: View {
|
||||
ZStack {
|
||||
if let route = window.vaultWorkRoute {
|
||||
VaultWorkDetailView(route: route)
|
||||
.id(route)
|
||||
.transition(.move(edge: .trailing).combined(with: .opacity))
|
||||
}
|
||||
}
|
||||
.frame(
|
||||
@@ -136,6 +138,10 @@ struct RootView: View {
|
||||
.allowsHitTesting(showsWorkDetail)
|
||||
.accessibilityHidden(!showsWorkDetail)
|
||||
}
|
||||
.animation(
|
||||
Motion.panel(reduceMotion: reduceMotion),
|
||||
value: window.vaultWorkRoute
|
||||
)
|
||||
.frame(
|
||||
minWidth: Metrics.VaultContent.min,
|
||||
maxWidth: .infinity,
|
||||
|
||||
Reference in new issue
Block a user