mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 02:51:11 +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 {
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user