mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 05:02:53 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user