SwiftUI-Introspect/Tests/LegacyTestsHostApp/LegacyTestsHostApp.swift

15 lines
457 B
Swift

import SwiftUI
@main
final class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController = UIHostingController(rootView: EmptyView())
window?.makeKeyAndVisible()
return true
}
}