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
}
}
// LaunchScreen.storyboard setup:
// - Add UIImageView centered with image named 'AppIcon'
// - Add UILabel below with text 'Welcome to App'
// - Use Auto Layout constraints to center and space elements
// AppIcon asset catalog:
// - Add all required icon sizes for iOS app icon
// Project settings:
// - Set 'LaunchScreen.storyboard' as the launch screen file
// - Set 'AppIcon' as the app icon sourceWe set up the AppDelegate to create a window and a simple root view controller with a white background. The launch screen is designed in a storyboard named LaunchScreen.storyboard which contains an image view centered with the app icon image and a label below it. Auto Layout constraints ensure the layout adapts to different screen sizes. The app icon images are added to the asset catalog under the AppIcon set, including all required sizes for iOS. Finally, the project settings are configured to use the launch screen storyboard and the app icon set, so the app shows the custom icon and launch screen on startup.