You should use a safe area.
For apps with custom layouts, supporting iPhone X should also be relatively easy, especially if your app uses Auto Layout and adheres to safe area and margin layout guides.
Read more: https://developer.apple.com/ios/human-interface-guidelines/overview/iphone-x/
I am also same issue. I used safe area Layout also. But above solution not support for me . I got solution from below link.
https://www.bignerdranch.com/blog/get-your-apps-ready-for-iphone-x/
This below point helped for me to resolve that solution.
Ensure your app uses a Launch Screen storyboard (not Launch images).