Skip to content

Commit

Permalink
Merge pull request airbnb#1301 from kiva/text-animation-keypaths
Browse files Browse the repository at this point in the history
Append the TextAnimatorNode as a child keypath
  • Loading branch information
buba447 authored Feb 8, 2021
2 parents e54a983 + 9dbc1c2 commit 3d27dc1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ final class TextCompositionLayer: CompositionLayer {
super.init(layer: textLayer, size: .zero)
contentsLayer.addSublayer(self.textLayer)
self.textLayer.masksToBounds = false

if let rootNode = rootNode {
childKeypaths.append(rootNode)
}
}

required init?(coder aDecoder: NSCoder) {
Expand Down

0 comments on commit 3d27dc1

Please sign in to comment.