mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-22 14:26:01 +00:00
Remove liquid glass force refresh
This commit is contained in:
1 parent
42c101605f
commit
d63665136b
1 file changed
+2
-7
@@ -393,13 +393,8 @@ struct AdaptiveToastBackgroundLayer: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
Group {
|
Group {
|
||||||
if #available(macOS 26.0, *) {
|
if #available(macOS 26.0, *) {
|
||||||
// Force periodic recomposition so glass sampling keeps tracking
|
Color.clear
|
||||||
// backdrop changes even when no other view state changes.
|
.glassEffect(.regular, in: .rect(cornerRadius: cornerRadius, style: .continuous))
|
||||||
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, blendingMode: .behindWindow, cornerRadius: cornerRadius)
|
VisualEffectView(material: .hudWindow, blendingMode: .behindWindow, cornerRadius: cornerRadius)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user