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 navigation bar when scaling UINavigationController's view in iOS 11 #308

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

howelse
Copy link

@howelse howelse commented Dec 5, 2017

Fixes #303 by adjusting safe area insets during animations

@wdcurry
Copy link

wdcurry commented Dec 5, 2017

i tested the raw code at my end and it works perfectly, thank you.

@isanth
Copy link

isanth commented Feb 27, 2018

if its fine merge it, please. don't hesitate.

@@ -649,9 +667,11 @@ - (void)panGestureRecognized:(UIPanGestureRecognizer *)recognizer
CGFloat oppositeScale = (1 - (contentViewScale - 1));
self.contentViewContainer.transform = CGAffineTransformMakeScale(oppositeScale, oppositeScale);
self.contentViewContainer.transform = CGAffineTransformTranslate(self.contentViewContainer.transform, point.x, 0);
[self updateContentViewAdditionalSafeAreaInsets];
} else {
self.contentViewContainer.transform = CGAffineTransformMakeScale(contentViewScale, contentViewScale);

Choose a reason for hiding this comment

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

I have found that scaling layer.transform instead of view.transform does not cause this bug

Choose a reason for hiding this comment

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

Great job! Thanks

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.

6 participants