Hi! These forums are about the Swift language, so questions about the SwiftUI private apple framework are kinda offtopic. In the future, try asking at SwiftUI | Apple Developer Forums
As for how to use UIApplicationDelegate in SwiftUI app, there is UIApplicationDelegateAdaptor property wrapper you can use
@main
struct MyApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
...
}
class AppDelegate: NSObject, UIApplicationDelegate, UIGuidedAccessRestrictionDelegate {
...
}
I was headed to the Apple dev forums initially but came here in a brainfart thinking this would be a more appropriate place. This thread can be deleted if desired.