I want to iterate through view controllers of navigation controller in swift. For that I wrote a for loop like this
for navController in tabBarController?.viewControllers {
//some process
}
tabBarController is a UITabBarController.
But I am getting error like '$T4??' does not have a member named 'Generator'
Whats wrong with the code?