ExpandingMenu
ExpandingMenu copied to clipboard
App crashes after manual setup for 4.2 support
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.
same issue :(
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