mirror of
https://github.com/yattee/yattee.git
synced 2026-11-05 11:27:20 +00:00
Split the corner layout on the hinge when partially open
On a half-open foldable the side column takes exactly the trailing half, so the split lands on the hinge. Fully open, the column can now be resized up to half the width. A re-presented player seeds the hinge state from the last report so it doesn't animate into the split.
This commit is contained in:
@@ -100,7 +100,9 @@ struct ExpandedPlayerSheet: View {
|
||||
/// Foldable hinge partially open (iPhone Duo laptop position): the
|
||||
/// fullscreen portrait layout keeps the video on the upper half and
|
||||
/// moves every control to the lower half.
|
||||
@State var isTabletopHinge = false
|
||||
/// Seeded from the last hinge report so a re-presented player starts in
|
||||
/// the right layout instead of animating into it.
|
||||
@State var isTabletopHinge = HingeLayoutObserver.lastKnownTabletop
|
||||
#endif
|
||||
|
||||
#if os(iOS) || os(macOS)
|
||||
|
||||
Reference in New Issue
Block a user