mirror of
https://github.com/yattee/yattee.git
synced 2026-10-24 05:32:53 +00:00
Animate the tabletop layout switch on hinge changes
This commit is contained in:
@@ -362,6 +362,12 @@ struct ExpandedPlayerSheet: View {
|
||||
standardPlayerContent(geometry: geometry)
|
||||
#endif
|
||||
}
|
||||
#if os(iOS)
|
||||
// Applied inside the animation-stripping transaction below so the
|
||||
// hinge-driven tabletop switch still animates the video between
|
||||
// the screen center and the upper half.
|
||||
.animation(.easeInOut(duration: 0.3), value: isTabletopHinge)
|
||||
#endif
|
||||
.transaction { transaction in
|
||||
// Disable animations during layout switch to prevent position interpolation
|
||||
transaction.animation = nil
|
||||
|
||||
Reference in New Issue
Block a user