mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Update for frame resampling using TimelineView, but locks at 120FPS
This commit is contained in:
parent
a3a80ca3d4
commit
5990fbac06
4 changed files with 25 additions and 9 deletions
|
|
@ -114,8 +114,10 @@ struct ExtensionLockScreenWidgetView: View {
|
|||
|
||||
@ViewBuilder
|
||||
private func liquidGlassBackground(shape: RoundedRectangle) -> some View {
|
||||
LiquidGlassBackground(variant: requestedLiquidGlassVariant, cornerRadius: descriptor.cornerRadius) {
|
||||
Color.black.opacity(0.08)
|
||||
TimelineView(.animation) { context in
|
||||
LiquidGlassBackground(variant: requestedLiquidGlassVariant, cornerRadius: descriptor.cornerRadius, trigger: context.date.timeIntervalSinceReferenceDate) {
|
||||
Color.black.opacity(0.08)
|
||||
}
|
||||
}
|
||||
.overlay {
|
||||
tintOverlay(shape: shape)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue