hololake-system-architecture/product-source/hololake-native-desktop/mobile/ios/Sources/HoloLakeMobileApp.swift

17 lines
363 B
Swift

import SwiftUI
@main
struct HoloLakeMobileApp: App {
@StateObject private var client = HoloLakeSyncClient()
var body: some Scene {
WindowGroup {
ContentView()
.environmentObject(client)
.onOpenURL { url in
Task { await client.pair(with: url) }
}
}
}
}