2

When I am running the project in iPhone X is getting black space above navigation bar as shown, not getting the color as same.

enter image description here

How to solve this?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Ganesh Kumar
  • 51
  • 1
  • 6
  • If you're using the LaunchImage in your application, then add the one for iPhone X with the size 1125x2436 – Liubo Oct 24 '17 at 11:56
  • Maybe you added the constraints for the status bar manually. It seems that the navigation bar is 22 points away from the safe area. – PoolHallJunkie Oct 24 '17 at 11:58

1 Answers1

5

I suppose you are not using storyboard for launch screen.

There are two options to fix this.

  1. Use storyboard as LaunchScreen.
  2. If you are using Launch Image Source for launch screen add launch screen image for iPhoneX.

enter image description here

Bilal
  • 18,478
  • 8
  • 57
  • 72