mirror of
https://github.com/yattee/yattee.git
synced 2025-12-14 20:18:15 +00:00
Simplify fullscreen handling for iOS
Remove unnecessary edgesIgnoringSafeArea modifier and simplify status bar hiding logic by removing iPad-specific conditional checks, making the fullscreen behavior more consistent across iOS devices.
This commit is contained in:
@@ -48,7 +48,7 @@ struct ContentView: View {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
.overlay(videoPlayer.edgesIgnoringSafeArea(Constants.isWindowFullscreen ? .init() : .all))
|
.overlay(videoPlayer)
|
||||||
.sheet(isPresented: $navigation.presentingShareSheet) {
|
.sheet(isPresented: $navigation.presentingShareSheet) {
|
||||||
if let shareURL = navigation.shareURL {
|
if let shareURL = navigation.shareURL {
|
||||||
ShareSheet(activityItems: [shareURL])
|
ShareSheet(activityItems: [shareURL])
|
||||||
|
|||||||
@@ -412,7 +412,7 @@ struct VideoPlayerView: View {
|
|||||||
if !newValue { player.controls.hideOverlays() }
|
if !newValue { player.controls.hideOverlays() }
|
||||||
}
|
}
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
.statusBar(hidden: Constants.isIPad ? Constants.isWindowFullscreen : fullScreenPlayer)
|
.statusBar(hidden: fullScreenPlayer)
|
||||||
.backport
|
.backport
|
||||||
.toolbarBackground(colorScheme == .light ? .white : .black)
|
.toolbarBackground(colorScheme == .light ? .white : .black)
|
||||||
.backport
|
.backport
|
||||||
|
|||||||
Reference in New Issue
Block a user