diff --git a/lottie-ios/Classes/AnimatableLayers/LOTCompositionLayer.m b/lottie-ios/Classes/AnimatableLayers/LOTCompositionLayer.m index f8d950b45a..ecc905465d 100644 --- a/lottie-ios/Classes/AnimatableLayers/LOTCompositionLayer.m +++ b/lottie-ios/Classes/AnimatableLayers/LOTCompositionLayer.m @@ -125,7 +125,7 @@ } } -- (void)addSubview:(LOTView *)view +- (void)addSublayer:(LOTView *)view toLayerNamed:(NSString *)layer { LOTConstraintType constraint = LOTConstraintTypeAlignToBounds; LOTLayerView *layerObject = _layerNameMap[layer];