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) #if os(iOS)
presentationDetents([.medium, .large]) presentationDetents([.medium, .large])
.presentationDragIndicator(.visible) .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 #else
self self
#endif #endif

View file

@ -319,13 +319,21 @@ struct WordPicker: View {
var body: some View { var body: some View {
NavigationStack { NavigationStack {
List(Array(pool.enumerated()), id: \.offset) { _, w in List {
ForEach(Array(pool.enumerated()), id: \.offset) { _, w in
Button { Button {
onPick(w) onPick(w)
} label: { } 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") .navigationTitle("Vyberte slovo")
.navigationBarTitleDisplayMode(.inline) .navigationBarTitleDisplayMode(.inline)
.toolbar { .toolbar {