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
UIWindowinitialization toUIWindow(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] UIWindow not filling full display screen — black bars in simulator after re-adding mission information [duplicate]](https://i.sstatic.net/gYeYbnOI.png)


