20 lines
420 B
Swift
20 lines
420 B
Swift
import SwiftUI
|
|
|
|
let storage = TemperatureStorage()
|
|
let bluetoothClient = BluetoothClient()
|
|
|
|
@main
|
|
struct TempTrackApp: App {
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
ContentView()
|
|
.environmentObject(storage)
|
|
.environmentObject(bluetoothClient)
|
|
.onAppear {
|
|
bluetoothClient.delegate = storage
|
|
}
|
|
}
|
|
}
|
|
}
|