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

How to popmenu didDeselect action ? #23

Closed
DGP13 opened this issue Jan 28, 2019 · 2 comments
Closed

How to popmenu didDeselect action ? #23

DGP13 opened this issue Jan 28, 2019 · 2 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@DGP13
Copy link

DGP13 commented Jan 28, 2019

I'm open agin popmenu it's show me previous select action. How to diddeselect popmenu action ?

@CaliCastle CaliCastle self-assigned this Jan 29, 2019
@CaliCastle CaliCastle added the invalid This doesn't seem right label Jan 29, 2019
@CaliCastle
Copy link
Owner

Refer to documentation:
https://popmenu.calicastle.com/guide/#dismissal-callback

Example:

// The manager way
manager.popMenuDidDismiss = { selected in
    // `selected` is a bool indicating if a selection has been made

    if !selected {
        // When the user tapped outside of the menu
    }
}

@CaliCastle
Copy link
Owner

Or actually you should use View Controller methods instead (if you're using Manager, it's not recommended):
https://popmenu.calicastle.com/guide/#basic-usage-using-controller

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants