XCode26 - Unable to launch Image in storyboard for landscape picture in Portrait orientation

How to change the image launch screen using story to show picture display in rotated view when ipad in portrait orientation ?

Current launch screen

-Image Portrait Orientation

-Image Landscape Orientation

-Info Setting

Expected launch screen as below (Not Working) -Expected Launch Screen

I have uploaded the entire sample source here

Answered by DTS Engineer in 870077022

Since you started with a SwiftUI app, you're better off using the available Info.plist keys to define the contents of your launch screen, rather than a Launch Storyboard like shown in your project. These keys are already configured for you when you create a new SwiftUI app. Configure a launch screen in an information property list explains how to set the keys for existing projects, and UILaunchScreen has the keys and values that are available.

One of the most important aspects of launching is that you should downplay it, and there's a section in the Human Interface Guides that you should read regarding this. This typically means that the contents of your launch screen reflect the first screen the customer is going to see once launching is completed, rather than a splash screen for branding. Using large photos like your example here rarely falls in line with those recommendations.

— Ed Ford,  DTS Engineer

Since you started with a SwiftUI app, you're better off using the available Info.plist keys to define the contents of your launch screen, rather than a Launch Storyboard like shown in your project. These keys are already configured for you when you create a new SwiftUI app. Configure a launch screen in an information property list explains how to set the keys for existing projects, and UILaunchScreen has the keys and values that are available.

One of the most important aspects of launching is that you should downplay it, and there's a section in the Human Interface Guides that you should read regarding this. This typically means that the contents of your launch screen reflect the first screen the customer is going to see once launching is completed, rather than a splash screen for branding. Using large photos like your example here rarely falls in line with those recommendations.

— Ed Ford,  DTS Engineer

@DTS Engineer Hi, many thanks for many comprehensive documents. Can you reply what specific setting inside storyboard to set the launch screen as per** Expected launch screen as below (Not Working) ** as per post description above?

Sure, I can explain that a bit further. You added a Swift file to your project named LaunchViewController. That code will never run during the app launch process, because after all, your app is busy launching, not already running, so it doesn't yet have the ability to run that code. Thus, launch screens need to be static files — either just the contents of the Launch Storyboard, or just the contents of the Info.plist alternative which I recommend as the best choice these days. The system uses those static files to display your launch screen for you as the system gets your app ready to run your code.

There is one other issue with your Xcode project configuration, in that it's not configured to support all orientations in the General tab. That's also set by default for brand new targets, and not one that should be changed. Older apps that don't have all orientations selected need to migrate to supporting all orientations, if your launch screen question here is part of making updates to an existing app.

— Ed Ford,  DTS Engineer

XCode26 - Unable to launch Image in storyboard for landscape picture in Portrait orientation
 
 
Q