HomeiOS DevelopmentUIWindow not filling full display screen — black bars in simulator after...

UIWindow not filling full display screen — black bars in simulator after re-adding mission information [duplicate]


I am constructing an iOS app utilizing UIKit and Storyboards. Yesterday my app was displaying accurately within the simulator. Right now I unintentionally deleted some mission information and re-added them, and now the Login display screen has massive black bars on the prime and backside within the simulator, regardless that the storyboard preview appears to be like right and total what I’ve designed and coded for that display screen will not be displaying correctly.

What I’ve tried:

  • Pinning constraints on subviews to superview

  • Altering UIWindow initialization to UIWindow(body: UIScreen.most important.bounds)

  • Setting window background shade to match the view

  • Unchecking "Lengthen Edges Below High/Backside Bars"

  • Clear Construct Folder

SceneDelegate:

let window = UIWindow(body: UIScreen.most important.bounds)

window.windowScene = windowScene

let storyboard = UIStoryboard(identify: "Essential", bundle: nil)

let loginVC = storyboard.instantiateViewController(withIdentifier: "LoginViewController")

window.rootViewController = loginVC

window.makeKeyAndVisible()

self.window = window

Surroundings:

  • Xcode 16

  • iOS 26.2 simulator (iPhone 17)

  • UIKit, Storyboard-based

What might trigger the window to not fill the total display screen after re-adding mission information?

UIWindow not filling full display screen — black bars in simulator after re-adding mission information [duplicate]

enter image description here

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments