My application is tab based navigation. I am using Xcode9 with iOS11. For support landscape/portrait compatibility I am using the following method in my all viewControllers.
override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
super.viewWillTransitionToSize(size, withTransitionCoordinator: coordinator)
}
But when I rotate the app in first view controller, then automatically call the viewWillTransition method in all other view controllers. How to resolve this issue?