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 nested SafeAreaViews #84

Merged

Conversation

jacobp100
Copy link
Collaborator

Summary

On iOS, nested safe area views do not get their padding applied. I think this is because setSafeAreaInsets overrides the existing selector - but we don't need to do that as we have safeAreaInsetsDidChange

This simplifies the logic a bit too

Test Plan

Verify it SAVs work when nested - I did this in my personal project

On iOS, nested safe area views do not get their padding applied. I think this is because `setSafeAreaInsets` overrides the existing selector - but we don't need to do that as we have `safeAreaInsetsDidChange`

This simplifies the logic a bit too
Copy link
Collaborator

@janicduplessis janicduplessis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@janicduplessis janicduplessis merged commit f5aee03 into AppAndFlow:master May 25, 2020
@jacobp100 jacobp100 deleted the fix-nested-safe-area-views branch May 25, 2020 19:57
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.

2 participants