mirror of
https://github.com/yattee/yattee.git
synced 2026-10-27 15:07:18 +00:00
Replace UIScreen.main with scene-local context
- List row hairlines read displayScale from the SwiftUI environment - MPV render views take contentScaleFactor from traitCollection and re-apply it on UITraitDisplayScale changes - ExpandedPlayerWindow scales against the presenting view's own height - MPVPiPBridge sizes the PiP layer from the container view's window scene screen (UIScreen.main kept only as a nil-window fallback) - WideScreenPlayerLayout falls back to the offered geometry size - Remote control fullscreen state comes from the player sheet's layout pass via NavigationCoordinator.isWideScreenLayoutActive instead of screen bounds aspect - Orientation TODOs for Dynamic Island side detection and prefersInterfaceOrientationLocked
This commit is contained in:
@@ -68,6 +68,7 @@ final class NavigationCoordinator {
|
||||
if !isPlayerExpanded {
|
||||
hasAppliedPanelDefaultVisibility = false
|
||||
isCornerLayoutActive = false
|
||||
isWideScreenLayoutActive = false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -82,6 +83,11 @@ final class NavigationCoordinator {
|
||||
/// different view than the layout resolver.
|
||||
var isCornerLayoutActive = false
|
||||
|
||||
/// Whether the expanded player currently resolves to the widescreen
|
||||
/// (landscape) layout. Set from the sheet's layout pass so non-view code
|
||||
/// (remote control state) reads the real layout instead of screen bounds.
|
||||
var isWideScreenLayoutActive = false
|
||||
|
||||
/// Whether the mini player queue sheet is showing.
|
||||
var isMiniPlayerQueueSheetPresented = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user