Introduction
App icons and launch screens help users recognize your app and give a smooth start experience.
App icons and launch screens help users recognize your app and give a smooth start experience.
1. Add app icon images in Assets.xcassets > AppIcon. 2. Add launch screen storyboard file (LaunchScreen.storyboard). 3. Set launch screen in project settings under General > Launch Screen File.
Add 1024x1024 PNG image named AppIcon in Assets.xcassets for App Store icon.
Create LaunchScreen.storyboard with an ImageView showing your logo centered.In Xcode project settings, set 'Launch Screen File' to 'LaunchScreen'.
This simple app shows a white screen after the launch screen. The launch screen and app icon are set in the project settings and assets.
import UIKit @main class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { window = UIWindow(frame: UIScreen.main.bounds) let viewController = UIViewController() viewController.view.backgroundColor = .white window?.rootViewController = viewController window?.makeKeyAndVisible() return true } }
App icons are the images users see on their home screen and in the App Store.
Launch screens show a simple image or layout while your app is starting.
Set app icons in Assets.xcassets and launch screens with a storyboard file in project settings.
/* LaunchScreen.storyboard contains a centered image named 'LaunchImage' */ // No code changes to launch screen
Pass the test and this pattern moves unknown