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