initial commit
This commit is contained in:
28
IrisCompanion/iris/irisApp.swift
Normal file
28
IrisCompanion/iris/irisApp.swift
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user