mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-26 16:45:22 +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.delegate = context.coordinator
|
||||||
picker.allowsEditing = false
|
picker.allowsEditing = false
|
||||||
|
|
||||||
// Configure for true full-screen presentation
|
// Use standard full screen - iOS handles safe areas automatically
|
||||||
picker.modalPresentationStyle = .overFullScreen
|
picker.modalPresentationStyle = .fullScreen
|
||||||
if sourceType == .camera {
|
|
||||||
picker.showsCameraControls = true
|
|
||||||
picker.cameraOverlayView = nil
|
|
||||||
}
|
|
||||||
|
|
||||||
return picker
|
return picker
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user