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.