From 86dcc6efe5788679d3b22d4b0b780c96d378a956 Mon Sep 17 00:00:00 2001 From: Adam Cmiel Date: Thu, 5 Dec 2024 19:43:28 -0800 Subject: [PATCH] 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 --- Examples/Examples-iOS/IGListKitExamples/AppDelegate.swift | 2 +- Examples/Examples-tvOS/IGListKitExamples/AppDelegate.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/Examples-iOS/IGListKitExamples/AppDelegate.swift b/Examples/Examples-iOS/IGListKitExamples/AppDelegate.swift index 7c69c6820..1bde76589 100644 --- a/Examples/Examples-iOS/IGListKitExamples/AppDelegate.swift +++ b/Examples/Examples-iOS/IGListKitExamples/AppDelegate.swift @@ -7,7 +7,7 @@ import UIKit -@UIApplicationMain +@main class AppDelegate: UIResponder, UIApplicationDelegate { var isLaunched = false diff --git a/Examples/Examples-tvOS/IGListKitExamples/AppDelegate.swift b/Examples/Examples-tvOS/IGListKitExamples/AppDelegate.swift index 94dffda2e..15983b27f 100644 --- a/Examples/Examples-tvOS/IGListKitExamples/AppDelegate.swift +++ b/Examples/Examples-tvOS/IGListKitExamples/AppDelegate.swift @@ -7,7 +7,7 @@ import UIKit -@UIApplicationMain +@main class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow?