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

Adjust the keyboard inset more than before #200

Merged
merged 1 commit into from
Aug 28, 2020

Conversation

kyleve
Copy link
Collaborator

@kyleve kyleve commented Aug 26, 2020

Update the keyboard inset in both setFrame and layoutSubviews, to ensure the inset is always correct when we've changed either layout or positioning.

///
/// **WARNING**: You must **not** call this method outside of tests. Doing so will cause a fatal error.
///
func testing_forceLayoutUpdateNow()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This isnt necessarily related, but added in this PR since I was doing some snapshot testing attempts (turns out getting this working with the keyboard is a PITA), but it did resolve some async rendering issues.

@kyleve kyleve requested a review from kylebshr August 28, 2020 16:44
@kyleve kyleve force-pushed the kve/adjust-keyboard-but-more-than-before branch from 822f347 to 213c438 Compare August 28, 2020 16:56
@kyleve kyleve force-pushed the kve/adjust-keyboard-but-more-than-before branch from 213c438 to 745ac28 Compare August 28, 2020 17:41
@kyleve kyleve merged commit b15afde into main Aug 28, 2020
@kyleve kyleve deleted the kve/adjust-keyboard-but-more-than-before branch August 28, 2020 17:54
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