Create a file with Swift
& Storyboard
.
Removes Main.storyboard
.
Delete the term Main storyboard file base name
.
Application Scene Manifest
-> Application Session Role
-> Item0
-> Remove the Storyboard Name
.
Set the ViewController to be displayed with SceneDelegate.swift
.
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = (scene as? UIWindowScene) else { return }
window = UIWindow(frame: UIScreen.main.bounds)
let viewController = ViewController()
window?.rootViewController = viewController
window?.makeKeyAndVisible()
window?.windowScene = windowScene
}