MIT License - Apple Developer sample code Downloaded via Cupertino (https://github.com/mihaelamj/cupertino)
27 lines
661 B
Swift
27 lines
661 B
Swift
/*
|
||
See the LICENSE.txt file for this sample’s licensing information.
|
||
|
||
Abstract:
|
||
Application delegate.
|
||
*/
|
||
|
||
import UIKit
|
||
import SwiftUI
|
||
|
||
@main
|
||
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||
|
||
var window: UIWindow?
|
||
|
||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
||
|
||
let contentView = ContentView()
|
||
let window = UIWindow(frame: UIScreen.main.bounds)
|
||
window.rootViewController = UIHostingController(rootView: contentView)
|
||
self.window = window
|
||
window.makeKeyAndVisible()
|
||
return true
|
||
}
|
||
}
|
||
|