mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Cap Liquid Glass Effect to 30FPS for reduced GPU throttling
This commit is contained in:
parent
5990fbac06
commit
850bdc592b
3 changed files with 4 additions and 4 deletions
|
|
@ -136,7 +136,7 @@ struct LockScreenTimerWidget: View {
|
|||
}
|
||||
|
||||
private var customLiquidBackground: some View {
|
||||
TimelineView(.animation) { context in
|
||||
TimelineView(.periodic(from: .now, by: 1.0 / 30.0)) { context in
|
||||
LiquidGlassBackground(variant: timerGlassVariant, cornerRadius: Self.cornerRadius, trigger: context.date.timeIntervalSinceReferenceDate) {
|
||||
Color.black.opacity(0.12)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue