mirror of
https://github.com/pepaskopec-blip/Graduately.git
synced 2026-10-27 15:14:35 +00:00
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:
parent
2d7d55c47a
commit
ab2d248edd
2 changed files with 16 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue