Wrong view port height on ios for first time

I have updated my Xcode to Xcode 10 and now when I make a build using legacy flag, it works well but got one issue.
It doesn’t allow to interact the user for the bottom part of App, I noticed it shows the full App on full screen but actual heigh is for touch interaction is not like the UI.

But when I restart the Application it shows the right UI also the touch interaction with the UI works well.

Please help me with this.