hyperoslo / hyperoslo/ImagePicker

Gallery is not showing in full height

Open
#460 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4.9k
Forks
673
PR merge metrics
No merged PRs in 30d

Description

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.
```
extension FloorPlanViewController: ImagePickerDelegate {
func wrapperDidPress(_ imagePicker: ImagePickerController, images: [UIImage]) {
self.imagePickerController?.expandGalleryView()
}

func doneButtonDidPress(_ imagePicker: ImagePickerController, images: [UIImage]) {
for image in images {
self.currentPhotoUploader?.addImage(image: image)
}
self.currentPhotoUploader = nil
self.imagePickerController?.resetAssets()
self.imagePickerController?.dismiss(animated: true, completion: nil)
}

func cancelButtonDidPress(_ imagePicker: ImagePickerController) {
self.imagePickerController?.dismiss(animated: true, completion: nil)
}
}
```
```
private func initImagePicker() {
let configuration = Configuration()
configuration.recordLocation = false
configuration.collapseCollectionViewWhileShot = true
imagePickerController = ImagePickerController(configuration: configuration)
imagePickerController?.delegate = self
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.