From 76f976438f4cb3bd09631570e2656b6844bb7113 Mon Sep 17 00:00:00 2001 From: jack Date: Sat, 18 Oct 2025 13:55:44 +0200 Subject: [PATCH] Fix camera white bars with overFullScreen presentation - Changed modalPresentationStyle from .fullScreen to .overFullScreen - This should eliminate white bars at top/bottom on notched devices - Explicitly set showsCameraControls and cameraOverlayView for camera mode --- bitchat/Views/ContentView.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bitchat/Views/ContentView.swift b/bitchat/Views/ContentView.swift index 9dd47cfb..9ddf05a8 100644 --- a/bitchat/Views/ContentView.swift +++ b/bitchat/Views/ContentView.swift @@ -2151,7 +2151,14 @@ struct ImagePickerView: UIViewControllerRepresentable { picker.sourceType = sourceType picker.delegate = context.coordinator picker.allowsEditing = false - picker.modalPresentationStyle = .fullScreen + + // Configure for true full-screen presentation + picker.modalPresentationStyle = .overFullScreen + if sourceType == .camera { + picker.showsCameraControls = true + picker.cameraOverlayView = nil + } + return picker }