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.
This commit is contained in:
jack
2025-10-18 14:11:02 +02:00
parent fae76dc515
commit e427e1c62f
+2 -6
View File
@@ -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
}