TempTrack-iOS/TempTrack/TempTrackApp.swift

20 lines
420 B
Swift
Raw Normal View History

2023-05-29 18:23:13 +02:00
import SwiftUI
let storage = TemperatureStorage()
let bluetoothClient = BluetoothClient()
2023-05-29 18:23:13 +02:00
@main
struct TempTrackApp: App {
2023-05-29 18:23:13 +02:00
var body: some Scene {
WindowGroup {
ContentView()
.environmentObject(storage)
.environmentObject(bluetoothClient)
.onAppear {
bluetoothClient.delegate = storage
}
2023-05-29 18:23:13 +02:00
}
}
}