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

Fix for screen rotation issue #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Stitch7
Copy link

@Stitch7 Stitch7 commented Oct 5, 2018

Hi Kyle,
i've found a solution for the issue described in issue #1 and also in the stackoverflow conversation by @trapper-.
I believe it's caused by a bug in iOS11 and higher, because it does not happen on iOS10 and i don't have any other explanation. Due to this, my change is more an ugly workaround then a proper fix, but maybe you want to merge it because it could be helpful for other people. I've also embedded the main vc in a navigation controller, because the issue was only visible in this constellation.

Thanks for your great work in this repo, this was very helpful for me.

cheers
Chris

Fixes compiler warning "Forced cast from 'UIViewController?' to 'UIViewController' only unwraps optionals; did you mean to use '!'?"
Adds NavigationController as root to storyboard to make issue with screen
rotation visible
When rotating screen while overlay vc is presented the underlying presenting vc gets corrupted after dismissal. I believe this is a bug in iOS11 and higher, because it does not happen on iOS10. Due to this, resetting the frame to screen size is more a workaround then a proper fix, feel free to suggest a better solution.
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

Successfully merging this pull request may close these issues.

1 participant