EIS-BLE-S3/cue-ios/CueIOS/CueIOSApp.swift

16 lines
362 B
Swift

import SwiftUI
@main
struct CueIOSApp: App {
@State private var state = AppState()
var body: some Scene {
WindowGroup {
ContentView(state: state)
.onReceive(Timer.publish(every: 0.25, on: .main, in: .common).autoconnect()) { _ in
state.updateConnectionState()
}
}
}
}