Open
Description
Describe the bug
When in side-by-side mode and the keyboard is shown, the keyboard overlaps with the shown video.
To Reproduce
Steps to reproduce the behavior:
- Open a video item
- Switch to side-by-side mode with Notes app
- Tap into the notes canvas to show the keyboard
- Notice overlapping keyboard and video player
Expected behavior
Move the video up to show as much of the video as possible.
Affected Component
BingePlayerViewController
Additional context
- Observe
UIResponder.keyboardWillShowNotification
andUIResponder.keyboardWillHideNotification
to react accordingly. - Retrieve height for keyboard via
let keyboardFrameValue = notification.userInfo [UIResponder.keyboardFrameEndUserInfoKey] as? NSValue let keyboardHeight = keyboardFrameValue?.cgRectValue.size.height