mirror of
https://github.com/yattee/yattee.git
synced 2025-11-15 22:48:43 +00:00
Fix video player overlay to respect window fullscreen state on iOS
Change edgesIgnoringSafeArea from .all to conditional based on Constants.isWindowFullscreen to properly handle safe areas when not in fullscreen mode.
This commit is contained in:
@@ -48,7 +48,7 @@ struct ContentView: View {
|
||||
#endif
|
||||
}
|
||||
#if os(iOS)
|
||||
.overlay(videoPlayer.edgesIgnoringSafeArea(.all))
|
||||
.overlay(videoPlayer.edgesIgnoringSafeArea(Constants.isWindowFullscreen ? .init() : .all))
|
||||
.sheet(isPresented: $navigation.presentingShareSheet) {
|
||||
if let shareURL = navigation.shareURL {
|
||||
ShareSheet(activityItems: [shareURL])
|
||||
|
||||
Reference in New Issue
Block a user