Skip to content
This repository was archived by the owner on May 23, 2022. It is now read-only.

Completion handler#61

Open
andreyrd wants to merge 4 commits into
morizotter:masterfrom
andreyrd:feature/completion-handler
Open

Completion handler#61
andreyrd wants to merge 4 commits into
morizotter:masterfrom
andreyrd:feature/completion-handler

Conversation

@andreyrd
Copy link
Copy Markdown

Added a completion handler to the dropdown, as discussed in #55

I kept action as the last parameter to drop(), so that we don't break anyone using trailing closure syntax. Based on a compile of my own project that uses SwiftyDrop, this doesn't seem to be a breaking change, but I'm not sure how adding this optional parameter will affect other projects.

@morizotter
Copy link
Copy Markdown
Owner

morizotter commented Nov 21, 2017

Thanks! I think it's a good approach. But I have a same concern about existing action. It'll maybe good for adding deprecated for exiting action .. mm.

@andreyrd
Copy link
Copy Markdown
Author

andreyrd commented Nov 21, 2017

Ah, right now action handles tap, while completion handles swipe or timeout. Maybe for a v5, completion could handle tap, swipe, and timeout!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants