feat(connector): add basic XPC connection

This commit is contained in:
Anthony Berg
2024-04-20 11:00:32 +01:00
parent 2411413d0c
commit 601a869200
2 changed files with 30 additions and 3 deletions

View File

@@ -85,8 +85,8 @@ class SimulatorStatus {
/**
* Purely for testing
*/
private suspend fun loadSimulator(viewModel: InterfaceState) {
delay(1000)
viewModel.simConnection = !viewModel.simConnection
private fun loadSimulator(viewModel: InterfaceState) {
val xpc = XPC()
viewModel.simConnection = xpc.connected()
}
}