Ios App Lifecycle Viewdidload

If you enable scene support in your app ios always uses your scene delegates in ios 13 and later.
Ios app lifecycle viewdidload. This method is loaded once in view controller life cycle its called when all the view are loaded you can do some common task in this method. 1 network call which need once. Every time you build an app viewdidlayoutsubviews will take place right after viewdidload because remember that viewdidlayoutsubviews take place when the layout calculation is applied.
Over this lifecycle we can also check some. 3 viewdidload this called after the view is loaded into memory but bounds are not set yet. And not from landscape left to landscape right.
We need to observe the changes of our app lifecycle. This is a good place to initialize variables and setup one time only work because this method will run only one time but do not do heavy work here because the view has not appeared on screen yet so the app may appear as freezing on the previous screen. An interview question that i ve seen appear for numerous ios developer positions is to name and explain the view controller lifecycle events in order.
Then when you rotate your app viewdidlayoutsubviews will take place again and this only work from portrait to landscape and landscape back to portrait.