A property wrapper that is used in App
to provide a delegate from UIKit.
@main
struct ddApp: App {
@UIApplicationDelegateAdaptor private var appDelegate: AppDelegate
var body: some Scene {
WindowGroup {
ContentView()
.environmentObject(HomeGlobal())
}
}
}
class AppDelegate: NSObject, UIApplicationDelegate {
}