hyperoslo / ImagePicker

:camera: Reinventing the way ImagePicker works.
Other
4.87k stars 678 forks source link

Cannot unselecting image when setting "imageLimit" to 1. #470

Closed azizimarouan closed 4 years ago

azizimarouan commented 4 years ago

This issue was opened in #465 and it is closed without being fixed.

azizimarouan commented 4 years ago

I deleted this code link_1 and link_2 and the issue is fixed for me! please update it!

Tj3n commented 4 years ago

You have to write like this:

        let config = Configuration()
        config.allowMultiplePhotoSelection = false
        let imagePicker = ImagePickerController(configuration: config)
        imagePicker.delegate = self

not imagePicker.imageLimit = 1

azizimarouan commented 4 years ago

Thank you @Tj3n , but I think this should be mentioned in the README.md file.

3lvis commented 3 years ago

Added to the README https://github.com/hyperoslo/ImagePicker/commit/4cfb7e30660960f63120cd3fbbc62c14fb193d8a

https://github.com/hyperoslo/ImagePicker#faq