ios – Multiple references of published variables in SWIFTUI code


I have a app with multiple pages and sockets. On receiving values from socket the app updated various pages and multiple calculations happen in background.

App works fine on every page but there is one page which has around hundred of calculations going. After reading various sources online I have used memory graph to check the leaks and unnecessary references and found that on going to that page there are some variables and references which are causing app to render slow and hang for a while.

Attaching the screenshot of variables.

enter image description here

I need help to understand the meaning of marked variables and ways to reduce those variables. Any other way to reduce this issue can work too.
Thanks for the help.

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img