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

SwiftyMenu/SwiftyMenu.swift:410: Fatal error:Unexpectedly found nil while implicitly unwrapping an Optional value #46

Open
JidongHe opened this issue May 8, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JidongHe
Copy link

JidongHe commented May 8, 2024

In my project,I try init this menu by code and by storyboard , all of them clash when self.willExpand() in the file from pods.
my code is
`func setupMenu(){

    dropList.delegate = self
    dropList.items = sortTypeItems

    dropList.configure(with: menuAttributes)
    dropList.willExpand = {
        print("****SwiftyMenu Code Will Expand!****")
    }
}` 

and terminal print "SwiftyMenu Code Will Expand!" successful,then next second,project get clash

@JidongHe JidongHe closed this as completed May 9, 2024
@JidongHe JidongHe reopened this May 9, 2024
@KarimEbrahemAbdelaziz
Copy link
Owner

Hello @JidongHe ,

May I know what is the usecase for using delegate and closures at the same time?

I would recommend using only one approach if possible for now. And can you please share the full setup if?

Thank you.

@KarimEbrahemAbdelaziz KarimEbrahemAbdelaziz added the bug Something isn't working label May 11, 2024
@KarimEbrahemAbdelaziz KarimEbrahemAbdelaziz self-assigned this May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants