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

iOS 18.0 Beta Crash #210

Closed
rob-malvisi opened this issue Jul 4, 2024 · 2 comments
Closed

iOS 18.0 Beta Crash #210

rob-malvisi opened this issue Jul 4, 2024 · 2 comments

Comments

@rob-malvisi
Copy link

Taping on a menu item in iOS 18.0 causes a crash, with

Thread 1: EXC_BAD_ACCESS (code=1, address=0x309534ce4d7db0)

in LGSideMenuController line 354

the line being

_rootView?.removeFromSuperview()

We are calling it as (crashes on the second line):

let rootViewController = LocationsNavigationViewController()
sideMenuController.rootViewController = rootViewController

Interestingly, it does not always crash, it seems leaving the side menu open for 5 - 10s then tapping an item avoids the crash.

Any assistance gratefully received, many thanks.

@rob-malvisi
Copy link
Author

Just to add this also happens on the release iOS 18.0

@rob-malvisi
Copy link
Author

For anyone experiencing the same issue, it was solved by setting a rootView before the rootViewController:

let rootViewController = LocationsNavigationViewController()
sideMenuController.rootView = rootViewController.view
sideMenuController.rootViewController = rootViewController

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant