mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 00:45:21 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user