Skip to content

LottieAnimationView remove animation, but LottieAnimationLayer.rootAnimationLayer not remove #2207

@skytoup

Description

@skytoup

Which Version of Lottie are you using?

Lottie 4.3.3

Expected Behavior

remove animation

let view = LottieAnimationView()
view.animation = nil

https://github.com/airbnb/lottie-ios/blob/45517c3cfec9469bbdd4f86e32393c28ae9df0bc/Sources/Public/Animation/LottieAnimationLayer.swift#L1149C3-L1149C3

Why not set the LottieAnimationLayer.rootAnimationLayer to nil? The rootAnimationLayer will continue reloadImages

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions