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:
Arkadiusz Fal
2025-11-18 18:11:48 +01:00
parent 50efe94839
commit 13d7a8d0a6
2 changed files with 2 additions and 2 deletions

View File

@@ -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])

View File

@@ -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