mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-04-01 06:53:19 +02:00
Add Flux
This commit is contained in:
13
Examples/Flux/SwiftUI-Flux/SceneDelegate.swift
Executable file
13
Examples/Flux/SwiftUI-Flux/SceneDelegate.swift
Executable file
@@ -0,0 +1,13 @@
|
||||
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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user