Created
May 18, 2021 13:14
-
-
Save matkuznik/7f9d8705a4a64e06d7e298eeb58b22b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let windowSafeArea: CGFloat = windowsSafeAreaWereAdded ? 0 : viewController.view.safeAreaInsets.bottom - viewController.additionalSafeAreaInsets.bottom | |
viewController.additionalSafeAreaInsets.bottom += beginKeyboardBounds.origin.y - endKeyboardBounds.origin.y - windowSafeArea | |
windowsSafeAreaWereAdded = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment