mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-12-02 04:44:10 +01:00
Add Flux
This commit is contained in:
1 parent
5eaf1fbc68
commit
6d351cf167
14 files changed
+652
-1
No files matched your search
+13
@@ -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