ExpandingMenu icon indicating copy to clipboard operation
ExpandingMenu copied to clipboard

App crashes after manual setup for 4.2 support

Open Rahulrvarma22 opened this issue 5 years ago • 2 comments

I had the old version of code using the manual setup and now I have updated it with support 4.2 I have just replaced old code in ExpandingMenuButton.swift and ExpandingMenuItem.swift with the new code.

And the app crashes on line :

self.expandingSoundPath = Bundle(url: Bundle(for: ExpandingMenuButton.classForCoder()).url(forResource: "ExpandingMenu", withExtension: "bundle")!)?.path(forResource: "expanding", ofType: "caf")

Error is >> Fatal error: Unexpectedly found nil while unwrapping an Optional value

@monoqlo Kindly revert soon as I had updated the code to release my app with newer version.

Thank you.

Rahulrvarma22 avatar Oct 23 '18 02:10 Rahulrvarma22

same issue :(

awaismubeen avatar Oct 23 '18 11:10 awaismubeen

self.expandingSoundPath = Bundle.main.url(forResource: "expanding", withExtension: "caf")?.absoluteString

        self.foldSoundPath =   Bundle.main.url(forResource: "fold", withExtension: "caf")?.absoluteString

        self.selectedSoundPath =  Bundle.main.url(forResource: "selected", withExtension: "caf")?.absoluteString

just change these

awaismubeen avatar Oct 23 '18 11:10 awaismubeen