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

safeAreaLayoutGuide used for iOS 11 and tvOS 11 #40

Merged
merged 2 commits into from
Nov 12, 2017

Conversation

cszatmary
Copy link
Contributor

I have added a check to the superview methods to see if the device is on iOS 11 or tvOS 11 and use the superview.safeAreaLayoutGuide, otherwise just use the superview as before. I have tested this and it works. It is backwards compatible and should not break any existing code.

Here are pictures to demonstrate the effect:
Before: before After: after

@roberthein roberthein merged commit 7ccae8f into roberthein:master Nov 12, 2017
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.

None yet

2 participants