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

Resize UIWindow approach to allow presenting view controllers #18

Merged
merged 6 commits into from
Oct 21, 2018

Conversation

marcosgriselli
Copy link
Owner

This PR adds support for resizing the SizesWindow to avoid unexpected behavior in multiple occasions like when presenting a modal view controller. It still has a few issues like arranging the configuration view when rotating but I believe this is the way to go.

img_2201 trim

Fixes #16.

@marcosgriselli marcosgriselli merged commit 8478290 into master Oct 21, 2018
@marcosgriselli marcosgriselli deleted the feature/window_based_approach branch October 21, 2018 18:20
@marcosgriselli
Copy link
Owner Author

This PR moves Sizes to a UIWindow based approach which provides a lot of benefits, like presenting view controllers correctly, avoiding navigation bar layout bugs, better layout of portrait mode on the contained view or being able to eventually set the safeAreaInsets.

It does come with a few downsides, the configuration view is now displayed on a different window and rotating the actual device causes some layout issues but I think the benefits outweight the issues on this one.

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

Successfully merging this pull request may close these issues.

None yet

1 participant