Commit 61f5c757 by Daniel Dahan

development: Fixed an issue where changing between pulse animations would…

development: Fixed an issue where changing between pulse animations would eventually end up in a state where maskToBounds is false when it should be true.
parent ad4a5891
......@@ -68,9 +68,7 @@ internal extension Animation {
pulseLayers.insert(bLayer, at: 0)
visualLayer.addSublayer(bLayer)
if .centerRadialBeyondBounds == pulseAnimation || .radialBeyondBounds == pulseAnimation {
visualLayer.masksToBounds = false
}
visualLayer.masksToBounds = !(.centerRadialBeyondBounds == pulseAnimation || .radialBeyondBounds == pulseAnimation)
Animation.animationDisabled(animations: {
bLayer.frame = visualLayer.bounds
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment