From e427e1c62f98cc8dc629958e584f44544918f617 Mon Sep 17 00:00:00 2001 From: jack Date: Sat, 18 Oct 2025 14:11:02 +0200 Subject: [PATCH] Simplify camera presentation to reduce frame errors - Changed back to standard .fullScreen presentation - Removed overFullScreen which was causing frame dimension errors - Let iOS handle safe areas automatically (white bars are intentional) - Reduces gesture gate timeout warnings Note: White bars on notched devices are iOS default behavior for UIImagePickerController. This respects safe areas for status bar and home indicator. True edge-to-edge would require custom AVFoundation camera implementation. --- bitchat/Views/ContentView.swift | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bitchat/Views/ContentView.swift b/bitchat/Views/ContentView.swift index 8bd3560c..92a3001d 100644 --- a/bitchat/Views/ContentView.swift +++ b/bitchat/Views/ContentView.swift @@ -2151,12 +2151,8 @@ struct ImagePickerView: UIViewControllerRepresentable { picker.delegate = context.coordinator picker.allowsEditing = false - // Configure for true full-screen presentation - picker.modalPresentationStyle = .overFullScreen - if sourceType == .camera { - picker.showsCameraControls = true - picker.cameraOverlayView = nil - } + // Use standard full screen - iOS handles safe areas automatically + picker.modalPresentationStyle = .fullScreen return picker }