mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-24 09:48:21 +00:00
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
24 lines
686 B
Swift
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
|
|
}
|
|
|
|
}
|