-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/remove cancel button #17
Conversation
@hyperoslo/myshop-ios we don't need the cancel button anymore? |
@zenangst I've talked to @RamonGilabert before implementing this and we agreed to remove cancel button completely. |
@Richardoti @RamonGilabert Do you mean removing the "Done" button in the full screen image gallery? |
@gilstad you are everywhere! :) Well, Richard told me to just display Done instead of Cancel, since, when you select 4 images and you deselect them, you are also done for instance, you don't want to cancel I guess. The reason behind it was like that right @Richardoti? |
@gilstad, no. I mean this "Cancel" button: So, the bottom view of the screen will always look like this - "Done" instead of context-dependent "Done"/"Cancel" The reason for this change, as @RamonGilabert pointed, because now it is impossible remove all the photos if user selected any. One photo will always be selected - because "Cancel" button does not apply changes, it just dismisses the screen. The only way to remove all photos - close and reopen composer. With this fix changes are being applied always, so if you remove all the photos, you can press "Done" and no photos will be attached to the post. The bug with 4 images is not related to this and fixed in #13 |
@RamonGilabert I dont read everything on git in detail, but I try to get an overview of the things happening. If I see something that I think goes in the wrong direction I comment ;) I don't see the reason for not allowing to remove all images. This should be possible. If the user don't want to add pictures anyway we should not force him to close the whole composer. Se we should keep the two options the button in question
|
@gilstad I agree with the idea of allowing user to deselect all the images - it is exact reason, why I did this pull request. Now it is impossible to do.
If we use only I hope, it's clear, but if you want, I can show you the live demo of the case I am talking about. |
Conflicts: Source/ImagePickerController.swift
Now, the only button is
Done
and if Picker is empty, it returns empty array.