Skip to content
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

Gallery - context menu (delete only) #952

Closed
wants to merge 8 commits into from
Closed

Conversation

nayooti
Copy link
Contributor

@nayooti nayooti commented Oct 17, 2020

closes #944
This PR adds a context menu to the GalleryViewController. The context menu only shows delete-action (as required in #944) but can be easily altered with other options like sharing images etc.

Since iOS13 apple introduced a new type of context menu, so I implemented two context menus that are shown depending on the iOS version. To review I suggest using an iOS12 simulator.

I had to move the prepareContextMenu-method in chatList to viewWillAppear. Otherwise the menu manipulation in GallerViewController would override the ChatList's context menu.

iOS12-style context menu
image

iOS13-style context menu
image

@cyBerta
Copy link
Contributor

cyBerta commented Oct 20, 2020

I like the new ios13 menu. What's still missing is previews for videos though.
Screen Shot 2020-10-20 at 13 07 57

Copy link
Contributor

@cyBerta cyBerta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see my comment

@r10s
Copy link
Member

r10s commented Oct 21, 2020

looks great the new context menu! and also a good place to make some experiences with them :)

when trying to build, however, i get the error "The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99." that issue seems to be unrelated.

@cyBerta
Copy link
Contributor

cyBerta commented Nov 5, 2020

closing in favor of #985

@cyBerta cyBerta closed this Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add option to delete image from gallery
3 participants