pi-remote-ios/Sources/App/piRemoteApp.swift

17 lines
391 B
Swift

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