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

Completion handler #61

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

andreyrd
Copy link

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
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
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.

None yet

2 participants