TempTrack-iOS/TempTrack/TempTrackApp.swift
2023-06-08 09:52:20 +02:00

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
}
}
}
}