Dont hide button in onboarding if bluetooth is off, crashes on mac and makes you unable to move forward on a phone

This commit is contained in:
Garth Vander Houwen 2025-07-16 07:26:09 -07:00
parent f2137a92c5
commit 0e472eeda8

View file

@ -62,20 +62,18 @@ struct DeviceOnboarding: View {
.interactiveDismissDisabled()
}
Spacer()
if bleManager.isSwitchedOn {
Button {
Task {
await goToNextStep(after: nil)
}
} label: {
Text("Get started")
.frame(maxWidth: .infinity)
Button {
Task {
await goToNextStep(after: nil)
}
.buttonBorderShape(.capsule)
.controlSize(.large)
.padding()
.buttonStyle(.borderedProminent)
} label: {
Text("Get started")
.frame(maxWidth: .infinity)
}
.buttonBorderShape(.capsule)
.controlSize(.large)
.padding()
.buttonStyle(.borderedProminent)
}
}