mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-21 05:46:03 +00:00
Fix liquid glass background refresh
This commit is contained in:
1 parent
f559a6ac9d
commit
935bdc5a65
1 file changed
+8
-3
@@ -393,10 +393,15 @@ struct AdaptiveToastBackgroundLayer: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
Group {
|
Group {
|
||||||
if #available(macOS 26.0, *) {
|
if #available(macOS 26.0, *) {
|
||||||
Color.clear
|
// Force periodic recomposition so glass sampling keeps tracking
|
||||||
.glassEffect(.regular, in: .rect(cornerRadius: cornerRadius, style: .continuous))
|
// backdrop changes even when no other view state changes.
|
||||||
|
TimelineView(.periodic(from: .now, by: 1.0 / 12.0)) { context in
|
||||||
|
Color.clear
|
||||||
|
.glassEffect(.regular, in: .rect(cornerRadius: cornerRadius, style: .continuous))
|
||||||
|
.id(context.date)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
VisualEffectView(material: .hudWindow, cornerRadius: cornerRadius)
|
VisualEffectView(material: .hudWindow, blendingMode: .behindWindow, cornerRadius: cornerRadius)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user