mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 13:12:53 +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:
@@ -480,8 +480,7 @@ final class RemoteControlCoordinator {
|
||||
// Compute fullscreen state (same logic as shouldShowFullscreenButton in PlayerControlsActions)
|
||||
#if os(iOS)
|
||||
let isIPad = UIDevice.current.userInterfaceIdiom == .pad
|
||||
let screenBounds = UIScreen.main.bounds
|
||||
let isWideScreenLayout = screenBounds.width > screenBounds.height
|
||||
let isWideScreenLayout = navigationCoordinator?.isWideScreenLayoutActive ?? false
|
||||
// iPad in widescreen = can't force rotation, so fullscreen toggle not available
|
||||
let canToggleFullscreen = !(isIPad && isWideScreenLayout) && state.currentVideo != nil
|
||||
let isFullscreen = isWideScreenLayout
|
||||
|
||||
Reference in New Issue
Block a user