Fix word-picker sheet glow from Liquid Glass refraction.

Use an opaque sheet background and plain list rows so the dialog word list stays readable.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
pepaskopec-blip 2026-09-23 10:37:01 +02:00
commit ab2d248edd
2 changed files with 16 additions and 5 deletions

View file

@ -360,6 +360,9 @@ extension View {
#if os(iOS)
presentationDetents([.medium, .large])
.presentationDragIndicator(.visible)
// Liquid Glass sheets refract the exercise chrome underneath into a
// bright tinted band across the word list; keep the sheet opaque.
.presentationBackground(.background)
#else
self
#endif

View file

@ -319,13 +319,21 @@ struct WordPicker: View {
var body: some View {
NavigationStack {
List(Array(pool.enumerated()), id: \.offset) { _, w in
List {
ForEach(Array(pool.enumerated()), id: \.offset) { _, w in
Button {
onPick(w)
} label: {
Text(w).foregroundStyle(.primary)
Text(w)
.foregroundStyle(.primary)
.frame(maxWidth: .infinity, alignment: .leading)
.contentShape(Rectangle())
}
.buttonStyle(.plain)
}
}
.listStyle(.plain)
.scrollContentBackground(.visible)
.navigationTitle("Vyberte slovo")
.navigationBarTitleDisplayMode(.inline)
.toolbar {