Remove liquid glass force refresh

This commit is contained in:
Leon Böttger authored and Leon Böttger committed 2026-03-13 21:20:50 +01:00
1 parent 42c101605f
commit d63665136b
1 file changed
+2 -7
@@ -393,13 +393,8 @@ struct AdaptiveToastBackgroundLayer: View {
var body: some View {
Group {
if #available(macOS 26.0, *) {
// Force periodic recomposition so glass sampling keeps tracking
// 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)
}
Color.clear
.glassEffect(.regular, in: .rect(cornerRadius: cornerRadius, style: .continuous))
} else {
VisualEffectView(material: .hudWindow, blendingMode: .behindWindow, cornerRadius: cornerRadius)
}