We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d1d453 commit 813562cCopy full SHA for 813562c
source/UIDataCodeGen/CodeGen/CSharp/CSharpInstantiatorGenerator.cs
@@ -617,7 +617,7 @@ void WriteFrameratePropertyImpl(CodeBuilder builder)
617
void WriteDurationPropertyImpl(CodeBuilder builder)
618
{
619
builder.WriteSummaryComment("Gets the duration of the animation.");
620
- builder.WriteLine($"public TimeSpan Duration => TimeSpan.FromTicks({SourceInfo.DurationTicksFieldName});");
+ builder.WriteLine($"public TimeSpan Duration => TimeSpan.FromTicks({SourceInfo.SourceMetadata.LottieMetadata.Duration.Time.Ticks});");
621
}
622
623
/// <summary>
0 commit comments