Animate Vault detail editors

This commit is contained in:
Kaede Akino committed 2026-08-28 18:16:36 +08:00
1 parent 914911ca9a
commit e263edca68
1 file changed
+6
+6
View File
@@ -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,