Sign In Sign Up

Configure splash screen in LaunchScreen storyboard

there is a blank storyboard called @LaunchScreen.storyboard . Can you use the AssetCatalog's called "splash" and stretch it proportioanlly over the storyboard when the app is launched

The user wants me to modify the LaunchScreen.storyboard file to show an image from an Asset Catalog called "splash" and stretch it proportionally over the launch screen when the app is launched.

Looking at the current LaunchScreen.storyboard, it's a basic storyboard with just a view controller and a plain view with system background color.

I need to:

  1. Add an UIImageView to the storyboard
  2. Configure it to use the "splash" asset from the Asset Catalog
  3. Set up constraints to make it stretch proportionally to fill the screen
  4. Set the content mode to aspect fill or aspect fit to maintain proportions

I'll need to modify the storyboard XML to add the image view and constraints.

Let me first check if there's an Asset Catalog in the project to confirm the "splash" asset exists.

Updated TODOs
**/*.xcassets
list_directory called with args:
{
  "path": "/Users/nic/code/mine/rucord/Rucord"
}
list_directory called with args:
{
  "path": "/Users/nic/code/mine/rucord/Rucord/Assets.xcassets"
}
Updated TODOs

Perfect! Found the Splash.imageset in the Asset Catalog. Now I'll modify the LaunchScreen.storyboard to add an image view that displays the splash image proportionally.

Now I need to add the image resource reference to the resources section: