I have TabBarcontroller with 5 viewcontroller "A", "B", "C", "D", "E". But i need to decide the order at runtime depends on API response. for ex. some time I need to show "A", "D", "C", "E", "B" i.e. in random order, OR sometime i need to show only for "D", "B", "C","A"
is there any way to deal with this scenario?
I am working with Swift 3, but even if i get some logic or possible way it can be helpful to solve my issue.
I have created TabBar and viewcontroller using storyboard.