Open Zwei-wei opened 4 years ago
I am using the newest Xcode + iPhone 11 with the newest system by the way~
I got the same issue
Same here, wasn't sure if it was a SwiftUI issue or not
Same here, wasn't sure if it was a SwiftUI issue or not
Definitely not SwiftUI, I am not using SwiftUI in the current project
Hi this project is in maintenance mode and no further work has been planned, I'm happy to assist if someone wants to look into fixing this issue. Thanks!
@jacobsapps @Zheng-Shuo @3lvis I have found the reason why it works like this. Because I am using IOS 13.0+ so by default if you do this present(imagePickerController, animated: true, completion: nil)
it will be presented as a slidable modal which might be the reason why the Gallery part of the ImagePick is not showing in full height. So It is easy to avoid if you add imagePickerController?.modalPresentationStyle = .fullScreen
before you present the ImagePicker. I still consider it as a bug, cause I thought it should be working in this scenario.
Hi @Zwei-wei I thought I had fixed this. Let me double check.
@3lvis I tried the newest version through pod update, if I switch back to default not using .fullScreen
, the bottom Galley can still only show like half of the image.
it's easy to fix, just in ImagePickerController.swift: var totalSize: CGSize { return UIScreen.main.bounds.size } => var totalSize: CGSize { return self.view.bounds.size }
I am a developer integrating this IMG picker to our apps. While testing on my iPhone 11, the gallery is not showing in full height. It looks like the gallery is hidden behind the bottom container. I will paste my code here.