mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-01-17 06:26:48 +01:00
14 lines
460 B
Swift
Executable File
14 lines
460 B
Swift
Executable File
import UIKit
|
|
import SwiftUI
|
|
|
|
final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|
var window: UIWindow?
|
|
|
|
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
|
|
let window = UIWindow(frame: UIScreen.main.bounds)
|
|
window.rootViewController = UIHostingController(rootView: CounterView())
|
|
self.window = window
|
|
window.makeKeyAndVisible()
|
|
}
|
|
}
|