//
//  AppDelegate.swift
//  SwiftUIDemo
//
//  Created by Shams Ahmed on 24/08/2020.
//  Copyright © 2020 Bitrise. All rights reserved.
//

import UIKit
import Trace

@UIApplicationMain
final class AppDelegate: UIResponder, UIApplicationDelegate {

    // MARK: - UIApplicationDelegate - Lifecycle

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        print("DEMO - did finish launching with options")
        
        _ = Trace.shared
        
        return true
    }

    // MARK: UISceneSession - Lifecycle

    func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
        print("DEMO - configuration for connecting")
        
        return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
    }

    func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
        print("DEMO - did discard scene sessions")
    }
}
