mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-24 12:08:44 -06:00
21 lines
713 B
Swift
21 lines
713 B
Swift
// ios/PhoneScene.swift
|
|
import Foundation
|
|
import UIKit
|
|
import SwiftUI
|
|
|
|
class PhoneSceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|
var window: UIWindow?
|
|
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
|
|
guard let appDelegate = (UIApplication.shared.delegate as? AppDelegate) else { return }
|
|
guard let windowScene = (scene as? UIWindowScene) else { return }
|
|
|
|
let rootViewController = UIViewController()
|
|
rootViewController.view = appDelegate.rootView;
|
|
|
|
let window = UIWindow(windowScene: windowScene)
|
|
window.rootViewController = rootViewController
|
|
self.window = window
|
|
window.makeKeyAndVisible()
|
|
}
|
|
}
|