Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dbmzzo committed Feb 27, 2024
1 parent 3316cb6 commit 1d90e66
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Binary file not shown.
8 changes: 2 additions & 6 deletions OmniPlotBot/Views/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,16 @@ struct DevicesList: View {

var body: some View {
NavigationView() {
List(bleManager.discoveredDevices, id: \.self) { device in
VStack() {
if bleManager.connectedDevices.contains(device) && bleManager.joystickReady {
NavigationLink(device.name, destination: ControlView(device: device))
if let device = bleManager.connectedDevices.first, bleManager.joystickReady {
ControlView(device: device)
} else {
HStack() {
Text(device.name)
Spacer()
ProgressView()
.progressViewStyle(CircularProgressViewStyle())
}
}
}
}.navigationTitle("Devices")
}.frame(maxHeight: .infinity).navigationViewStyle(.stack)
}
}
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# OmniPlotBotApp

This is the iOS app for the OmniPlotBot project as detailed at [this instructional page](https://daniel-matarazzo.com/posts/omniplotbot).

0 comments on commit 1d90e66

Please sign in to comment.