I am trying to create a Launch Screen for a new SwiftUI app built with Xcode 26. However, upon adding a UIImageView, the launch screen appears black and does not show anything.
I have followed the typical steps to create a screen:
- New file from template -> Launch Screen
- Add image to xcassets, reference in UIImageView
- Set to initial view controller, add file name in general tab to Launch Screen File
I have troubleshooted with the following sources: https://stackoverflow.com/questions/63978396/launch-screen-not-working-on-ios-14-with-xcode-12
https://developer.apple.com/forums/thread/665358
I have created a minimally reproducible example here: https://github.com/nickdebaise/launch-screen-bug