Add more accessors to CompatibleAnimation
#2450
Lancelotbronner
started this conversation in
General
Replies: 2 comments
-
My suggestion on
|
Beta Was this translation helpful? Give feedback.
0 replies
-
PRs are welcome! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Which Version of Lottie are you using?
Lottie 4.4.3
Expected Behavior
I need to access animation properties, like width and height, from a
CompatibleAnimationView
.I also load it from data so
CompatibleAnimation
is always nil.I need a way to access these properties, the more logical place would be
CompatibleAnimation
but that would require refactoring.Actual Behavior
These properties are unreachable,
CompatibleAnimationView
has a frame of zero after initialization.I don't have any way of knowing the size of my animation and our legacy engine needs it.
Animation JSON
N/A
Beta Was this translation helpful? Give feedback.
All reactions