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

View being unintentionally resized when appearing #21

Open
petard opened this issue Sep 21, 2017 · 1 comment
Open

View being unintentionally resized when appearing #21

petard opened this issue Sep 21, 2017 · 1 comment

Comments

@petard
Copy link

petard commented Sep 21, 2017

One of my view controllers has a UILabel which is horizontally centered and has a fixed constrained from the top of the view controller:

image

When running the app and swiping to said view controller the UILabel will somehow rerender, i.e. the UILabel is initially show much closer to the top and then jumps into the right place. This only happens on the first view, afterwards it is always in the right position.

Oddly this only happens when a view is tied to the top, when I add another UILabel that has only constrains to the bottom or to the sides everything works as it should. Same for elements that are horizontally or vertically centered or collection views that span the whole view.

Any ideas what could be causing this or how to fix it? The closest I could find was described in this SO post

I'm using XCode9.

@petard petard changed the title View being unintentionally resized when scrolling View being unintentionally resized when appearing Sep 21, 2017
@cronjob4
Copy link

cronjob4 commented Oct 11, 2017

I am having this issue too. It appeared on iOS 11 and I don't think there is a clear fix yet.

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

No branches or pull requests

2 participants