Open ddownn opened 5 years ago
temp fix:
I used AssistantKit
pod and edit this line 53 of KeyboardLayoutConstraint.swift
to:
keyboardVisibleHeight = frame.size.height - (Device.isNotched ? 34 : 0)
Thank you for reply @vahids.
This is my solution:
Edit this line 53 of KeyboardLoyoutConstraint.swift
to:
let bottomSafeAreaInset = UIApplication.shared.keyWindow?.safeAreaInsets.bottom ?? 0 keyboardVisibleHeight = frame.size.height - bottomSafeAreaInset
I've had some trouble getting this to work consistently with Predictive Text on vs. off, and on all iPhone X models there is a significant gap between the top of the keyboard and the bottom of the constrained element, while the older iPhone models appear correctly.