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 { ...@@ -68,9 +68,7 @@ internal extension Animation {
pulseLayers.insert(bLayer, at: 0) pulseLayers.insert(bLayer, at: 0)
visualLayer.addSublayer(bLayer) visualLayer.addSublayer(bLayer)
if .centerRadialBeyondBounds == pulseAnimation || .radialBeyondBounds == pulseAnimation { visualLayer.masksToBounds = !(.centerRadialBeyondBounds == pulseAnimation || .radialBeyondBounds == pulseAnimation)
visualLayer.masksToBounds = false
}
Animation.animationDisabled(animations: { Animation.animationDisabled(animations: {
bLayer.frame = visualLayer.bounds 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