fix build

improve iOS & iPadOS UI
This commit is contained in:
2026-06-19 15:49:48 +02:00
parent 9d6ff77a02
commit f48c739a9c
13 changed files with 192 additions and 19 deletions
@@ -91,14 +91,14 @@ struct SpeedTestSheet: View {
bitrateKbps = rec
dismiss()
}
.buttonStyle(.borderedProminent)
.glassProminentButtonStyle()
#if !os(tvOS)
.keyboardShortcut(.defaultAction)
#endif
}
if case .failed = phase {
Button("Retry") { run() }
.buttonStyle(.borderedProminent)
.glassProminentButtonStyle()
}
}
}
@@ -112,6 +112,12 @@ struct SpeedTestSheet: View {
.frame(width: 420)
.fixedSize(horizontal: false, vertical: true)
#endif
#if os(iOS)
// Bottom sheet rather than a full-screen modal; .medium stays put as the result view
// swaps in (a measured height would resize the sheet mid-probe).
.presentationDetents([.medium])
.presentationDragIndicator(.visible)
#endif
.onAppear { run() }
.onDisappear { token.cancelled = true }
}