I have following code in my AppDelegate.swift to setup root view controller for an iOS application. But it does not work. It follows Target structure (defined under General
If you follow this answer https://stackoverflow.com/a/58084612/6667477
and if you initialise a rootController programmatically you also have to remove reference to main storyboard from: