How to resolve the error The app delegate must implement the window property if it wants to use a main storyboard file swift
If you are not using SwiftUI, Here are the steps, I have followed.
Application Scene Manifest entry from Info.plistSceneDelegate.swift fileAppDelegate.swift classvar window: UIWindow? property in AppDelegate.swift classAfter these steps, your AppDelegate.swift file should look something like the following.
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
}