Skip to content

Commit ce66ffd

Browse files
committed
fix: disable implicit CALayer animations in VolumeBlocksView
1 parent e2fb3e1 commit ce66ffd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

VolumeGrid/HUD/VolumeBlocksView.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ final class VolumeBlocksView: NSView {
7070

7171
func update(style: HUDStyle, fillFraction: CGFloat) {
7272
self.style = style
73+
74+
CATransaction.begin()
75+
CATransaction.setDisableActions(true)
76+
7377
for fillLayer in fillLayers {
7478
fillLayer.fillColor = style.blockFillColor.cgColor
7579
}
@@ -92,5 +96,7 @@ final class VolumeBlocksView: NSView {
9296
fillLayer.frame = frame
9397
}
9498
}
99+
100+
CATransaction.commit()
95101
}
96102
}

0 commit comments

Comments
 (0)