iPhone XR white space at bottom of app

Like the title says, there’s a white bar that shows up in my app when I run it via the iPhone XR simulator in Xcode. However, there’s a strange caveat: when I tap the keyboard and dismiss it, the issue seems to fix itself. I’m not sure why this is the case… here’s an image of a before/after:

Thanks for any help in advance.

Same as this i guess: iOS WKwebview blank space at the bottom