How to reduce screen loading times and app crash issue

Hi,
I’m adding a bunch of stackviews(horizontal) to the vertical stack view programmatically inside a VIEWDIDLOAD method.Im adding this in almost 10 screens but while navigating to the respective screens it is taking almost 30 seconds to load and at some point while navigating it is taking too much and crashing the app.

Here is my view hierarchy for adding the views.

Vertical stackviews–>horizontal stackviews (view1+view2+view3±-----depends will up to 7views)

In the above hierarchy I’m adiiding multiple views to the horizontal stack view and finally adding to the vertical stack view where it can iterate through 100 or 1500…

Please help me out of this problem to increase the app loading time and app crash issue…