Search code examples
xcodeios11iphone-x

Navigation Bar issue in iPhone X?


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?


Solution

  • 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