mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-03-25 02:41:16 +01:00
Add examples project
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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: SearchUserView().environmentObject(SearchUserViewModel())
|
||||
)
|
||||
self.window = window
|
||||
window.makeKeyAndVisible()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user