Created
May 18, 2021 13:12
-
-
Save matkuznik/b4c840fb240040ce3dcd503f0dd5e01d 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
guard | |
let viewController = viewController, | |
let userInfo = notification.userInfo, | |
let beginKeyboardFrame = userInfo[UIResponder.keyboardFrameBeginUserInfoKey] as? CGRect, | |
let endKeyboardFrame = userInfo[UIResponder.keyboardFrameEndUserInfoKey] as? CGRect, | |
endKeyboardFrame != beginKeyboardFrame | |
else { | |
return | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment