Skip to content

Commit

Permalink
Set maskToBounds = true on animation layer (#1814)
Browse files Browse the repository at this point in the history
  • Loading branch information
BugorBN authored Nov 21, 2022
1 parent 7210f80 commit 2fcd823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Private/CoreAnimation/CoreAnimationLayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class CoreAnimationLayer: BaseAnimationLayer {
compatibilityTracker = CompatibilityTracker(mode: compatibilityTrackerMode, logger: logger)
valueProviderStore = ValueProviderStore(logger: logger)
super.init()

masksToBounds = true
setup()
try setupChildLayers()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ final class MainThreadAnimationLayer: CALayer, RootAnimationLayer {
animationLayers = []
self.logger = logger
super.init()
masksToBounds = true
bounds = animation.bounds
let layers = animation.layers.initializeCompositionLayers(
assetLibrary: animation.assetLibrary,
Expand Down

0 comments on commit 2fcd823

Please sign in to comment.