Sha256: 1a9fa1f604ef5ef8613bfece9dc6d2404343da7aaaaf8f8ea6105e5b1d56e40d

Contents?: true

Size: 607 Bytes

Versions: 4

Compression:

Stored size: 607 Bytes

Contents

import UIKit

class SceneDelegate: UIResponder, UIWindowSceneDelegate {

    var window: UIWindow?

    func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
        guard let windowScene = (scene as? UIWindowScene) else { return }
        setupRootViewController(windowScene: windowScene)
    }
}

extension SceneDelegate {
    func setupRootViewController(windowScene: UIWindowScene){
        window = UIWindow(windowScene: windowScene)
        window?.rootViewController = ViewController()
        window?.makeKeyAndVisible()
    }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shellboxCLI-0.1.3 lib/ios/module/templates/Example/Example/Example/SceneDelegate.swift
shellboxCLI-0.1.2 lib/ios/module/templates/Example/Example/Example/SceneDelegate.swift
shellboxCLI-0.1.1 lib/ios/module/templates/Example/Example/Example/SceneDelegate.swift
shellboxCLI-0.1.0 lib/ios/module/templates/Example/Example/Example/SceneDelegate.swift