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

Allow this to work inside tab view controllers #279

Closed
wants to merge 1 commit into from

Conversation

NduatiK
Copy link

@NduatiK NduatiK commented Oct 5, 2017

How? If the view will appear in a view controller that will use a tab bar, enable the "inTabViewController" inspector
attribute to prevent issues

Why? A view anchored to the top of a tab bar has its position compromised because the tab view animates downwards when the keyboard appears. This position, where the top of the tab bar is at the bottom of the visible screen results in a view that is slightly hidden by the tab bar.

More briefly, when the tab bar animates away, the topOffset is the distance to the bottom of the screen and not to the top of tab bar.

How? If the view will appear in a view controller that will use a tab bar, enable the "inTabViewController" inspector
attribute to prevent issues

Why? A view anchored to the top of a tab bar has its position compromised because the tab view animates downwards when the keyboard appears. This position, where the top of the tab bar is at the bottom of the visible screen results in a view that is slightly hidden by the tab bar. 

More briefly, when the tab bar animates away, the topOffset is the distance to the bottom of the screen and not to the top of tab bar.
@NduatiK NduatiK closed this Jun 2, 2024
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