From a6dd02e934685dc37d8c4019adff1975ace1ebc9 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Mon, 12 Oct 2026 22:48:36 +0200 Subject: [PATCH] Disable the vertical status bar in the player window On the iPhone Duo exterior display the vertical status bar reserved an 84pt trailing column beside the video. Opt the player window out so the status bar stays horizontal and the video uses the full width. --- Yattee/Views/Player/ExpandedPlayerWindow.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Yattee/Views/Player/ExpandedPlayerWindow.swift b/Yattee/Views/Player/ExpandedPlayerWindow.swift index 54ee9efc..f837b728 100644 --- a/Yattee/Views/Player/ExpandedPlayerWindow.swift +++ b/Yattee/Views/Player/ExpandedPlayerWindow.swift @@ -101,6 +101,13 @@ private final class ExpandedPlayerHostingController: UIHostingCon .fade } + /// The player is a video-first, mostly non-scrolling UI: keep the status bar horizontal + /// (iPhone Duo exterior) instead of reserving a trailing column beside the video. + @available(iOS 27.1, *) + override var preferredVerticalBarBehavior: UIVerticalBarBehavior { + .disabled + } + override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { super.viewWillTransition(to: size, with: coordinator)