From ab2d248edd01444014b049f818b8bc7b72a6d201 Mon Sep 17 00:00:00 2001 From: pepaskopec-blip Date: Wed, 23 Sep 2026 10:37:01 +0200 Subject: [PATCH] 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 --- ios/Maturita/UI/Components.swift | 3 +++ ios/Maturita/UI/ExercisesMore.swift | 18 +++++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/ios/Maturita/UI/Components.swift b/ios/Maturita/UI/Components.swift index 489dda9..ed38595 100644 --- a/ios/Maturita/UI/Components.swift +++ b/ios/Maturita/UI/Components.swift @@ -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 diff --git a/ios/Maturita/UI/ExercisesMore.swift b/ios/Maturita/UI/ExercisesMore.swift index cfc9513..9f1f739 100644 --- a/ios/Maturita/UI/ExercisesMore.swift +++ b/ios/Maturita/UI/ExercisesMore.swift @@ -319,13 +319,21 @@ struct WordPicker: View { var body: some View { NavigationStack { - List(Array(pool.enumerated()), id: \.offset) { _, w in - Button { - onPick(w) - } label: { - Text(w).foregroundStyle(.primary) + List { + ForEach(Array(pool.enumerated()), id: \.offset) { _, w in + Button { + onPick(w) + } label: { + Text(w) + .foregroundStyle(.primary) + .frame(maxWidth: .infinity, alignment: .leading) + .contentShape(Rectangle()) + } + .buttonStyle(.plain) } } + .listStyle(.plain) + .scrollContentBackground(.visible) .navigationTitle("Vyberte slovo") .navigationBarTitleDisplayMode(.inline) .toolbar {