import SwiftUI import AVFoundation import CoreLocation import CoreMotion @main struct QuixZoomCaptureApp: App { @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate var body: some Scene { WindowGroup { ContentView() } } } class AppDelegate: NSObject, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { // Begär tillstånd för kamera, mikrofon, plats AVCaptureDevice.requestAccess(for: .video) { _ in } AVCaptureDevice.requestAccess(for: .audio) { _ in } return true } }