Skip to content

An open-source cross-platform alternative to AirDrop

refactor(macos): replace deprecated `@NSApplicationMain` with `@main` (#1732)

Shlomo6c6ba283d118
diff --git a/app/macos/Runner/AppDelegate.swift b/app/macos/Runner/AppDelegate.swift
index f6fa437d..3772af56 100644
--- a/app/macos/Runner/AppDelegate.swift
+++ b/app/macos/Runner/AppDelegate.swift
@@ -1,7 +1,7 @@
import Cocoa
import FlutterMacOS
-@NSApplicationMain
+@main
class AppDelegate: FlutterAppDelegate {
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
// LocalSend handles the close event manually