import SwiftUI @main struct piRemoteApp: App { @StateObject private var notificationDelegate = NotificationDelegate.shared var body: some Scene { WindowGroup { ContentView() .onAppear { notificationDelegate.setup() UIApplication.shared.registerForRemoteNotifications() } } } }