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
Screen flash #7
Comments
Thanks for your suppor @muyexi but now the app crashes when i try to show the semimodalview using a real device (if i try to show it using the simulator, It works perfect). Tested using an iPhone 6, 7 and X. Regards! |
@llKoull I tested the demo project on iPhone 6s, no crash, maybe something wrong with your integration? |
It's so weird because sometimes when i try with the simulator, the view on the background disappears: But it never crashes, but it always crash using real devices for me. It never happen using the old version and i think that nothing should be changed in the new one to show the semimodalview. I use this method to invoke the view: `private final func showVehicleInformationView(_ vehicle: VehicleModel)
Regards! ^_^ |
I've been doing some tests and and now, my flow is: It was working using the old version, but now it crashes. I can avoid the crash if i remove the step 2, but only in the new version but then i get a crash in another line of the code (the first crash it's like an internal crash related with the animation of the model view and metal :S): Regards! |
@llKoull Since I can't reproduce the crash on my side, could you fix it and make a pull request? |
Yeah, i'm going to do some tests and i'll keep you informed ;) |
Hi @muyexi I think that i found the problem (but no the solution) you use a method called asImage() that takes a "screenshot" from the current view and the problem is that if the view is running any animation, the method crashes. As i commented, the main view is a MapView and i do an animation to center the map using the coordinates of a POI and, if i cancel the animation, the semimodalview works great. I finally added an small delay and it seems to work perfect: `func mapView(_ mapView: MKMapView, regionDidChangeAnimated animated: Bool)
Thanks and best regards! |
Hello!
First of all i want to thank you for this library ^_^
I've been using it for one of my projects and i saw that the screen flashes when i rotate the device and the semiModalView is open (i locked the app to be used in portrait mode only).
Any idea of how to avoid this flash?
Thanks and best regards!
The text was updated successfully, but these errors were encountered: