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 {