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
This commit is contained in:
jack
2025-10-18 13:55:44 +02:00
parent 369c335088
commit 76f976438f
+8 -1
View File
@@ -2151,7 +2151,14 @@ struct ImagePickerView: UIViewControllerRepresentable {
picker.sourceType = sourceType picker.sourceType = sourceType
picker.delegate = context.coordinator picker.delegate = context.coordinator
picker.allowsEditing = false 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 return picker
} }