rive-app / rive-ios

iOS runtime for Rive
MIT License
462 stars 53 forks source link

Vector icon appears with delay #288

Open akonoplev opened 6 months ago

akonoplev commented 6 months ago

Vector icon appears with delay

Hey guys, I want to use the rive sdk for animation of UITabBar's buttons, but unfortunately I faced with problem that the icon of animation appears with delay, and in the initial state icon is empty and appears after 1-3 seconds after

I've created a test project, you can easily reproduce this bug, just compile the project first time for simulator and device first time, but this issue can be reproduced event in second, third etc. times, but not 100%: https://github.com/akonoplev/rive-issue

Source .riv/.rev file

this issue reproduces for every rive animation files

Expected behavior

<-- A clear and concise description of what you expected to happen. -->

We expect that riveView in initial state displays the vector icon, as Lottie does

Screenshots

<-- If applicable, add screenshots to help explain your problem. -->

Also, I want to provide a screen shot from my app, how TabBatItems looks like after we moved this logic from Lottie to Rive that you can deeply understand the problem

image

after 3 seconds:

image

Device & Versions (please complete the following information)