29 lines
629 B
Swift
29 lines
629 B
Swift
//
|
|
// irisApp.swift
|
|
// iris
|
|
//
|
|
// Created by Kenneth on 06/01/2026.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
@main
|
|
struct irisApp: App {
|
|
@StateObject private var ble: BlePeripheralManager
|
|
@StateObject private var orchestrator: ContextOrchestrator
|
|
|
|
init() {
|
|
let bleManager = BlePeripheralManager()
|
|
_ble = StateObject(wrappedValue: bleManager)
|
|
_orchestrator = StateObject(wrappedValue: ContextOrchestrator(ble: bleManager))
|
|
}
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
ContentView()
|
|
.environmentObject(ble)
|
|
.environmentObject(orchestrator)
|
|
}
|
|
}
|
|
}
|