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)
|
#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
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
Button {
|
ForEach(Array(pool.enumerated()), id: \.offset) { _, w in
|
||||||
onPick(w)
|
Button {
|
||||||
} label: {
|
onPick(w)
|
||||||
Text(w).foregroundStyle(.primary)
|
} label: {
|
||||||
|
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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue