IGListKit/Examples/Examples-tvOS/IGListKitExamples/AppDelegate.swift
Adam Cmiel 189296c007 enable upcoming feature DeprecateApplicationMain
Summary:
Context: https://fb.workplace.com/groups/pikacompilertalk/permalink/1922686104918501/

SE: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0383-deprecate-uiapplicationmain-and-nsapplicationmain.md

This one is pretty straightforward. Let's make Swift 5 act like Swift 6

Reviewed By: ebgraham

Differential Revision: D66391294

fbshipit-source-id: c8aaf9f9904c29ab9955c34f564df9b150d81129
2025-12-10 17:18:12 +09:00

24 lines
686 B
Swift

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import UIKit
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController = UINavigationController(rootViewController: DemosViewController())
window?.makeKeyAndVisible()
return true
}
}