I have a quiet big USDZ file which have my 3d model that I run on Realityview Swift Project and it takes sometime before I can see the model on the screen, So I was wondering if there is a way to know how much time left for the RealityKit/RealityView Model to be loaded or a percentage that I can add on a progress bar to show for the user how much time left before he can see the full model on screen. and if there is a way how to do this on progress bar while loading.
Something like that
Hey @ostoura,
There's no supported way for you to get the loading progress of a single entity with the APIs currently available. If you'd like us to consider adding the necessary functionality, please file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here.
If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?
You can provide a placeholder view when the model is loading using the init(make:update:placeholder:)
method, this however doesn't provide any progress information; please file an enhancement request if you'd like this.
If you're loading multiple models you might want to checkout the example provided in this documentation. The example here uses a task group to load the models all at once.
Thanks for your question,
Michael