vds_ios_sample/VDSSample/AppDelegate.swift
Matt Bruce 92d5f0342b updated to include bundle icons
added extension for IconName
registered bundle

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2023-01-10 13:15:12 -06:00

42 lines
1.5 KiB
Swift

//
// AppDelegate.swift
// VDSSample
//
// Created by Matt Bruce on 8/2/22.
//
import UIKit
import VDS
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
if let resourcePath = Bundle.main.path(forResource: "VDSIcons", ofType: "bundle") {
BundleManager.register(resourcePath)
}
return true
}
// MARK: UISceneSession Lifecycle
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}
}