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.
This commit is contained in:
Arkadiusz Fal
2026-10-12 22:48:36 +02:00
parent 77c3103748
commit a6dd02e934

View File

@@ -101,6 +101,13 @@ private final class ExpandedPlayerHostingController<Content: View>: 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)