When I used to Swipe the controller 2 it called 2 times due to which next class also called .
Any Help would be much appreciated.
func carbonTabSwipeNavigation(_ carbonTabSwipeNavigation: CarbonTabSwipeNavigation, viewControllerAt index: UInt) -> UIViewController {
print("This is index(index)")
guard let storyboard = storyboard else { return UIViewController() }
switch index {
case 0:
return storyboard.instantiateViewController(withIdentifier: "SoundsController1") as! SoundsController1
case 1:
return storyboard.instantiateViewController(withIdentifier: "SoundsController2") as! SoundsController2
case 2:
return storyboard.instantiateViewController(withIdentifier: "SoundsController3") as! SoundsController3
default:
return self.storyboard!.instantiateViewController(withIdentifier: "RainSoundsController") as! RainSoundsController
}
}
When I used to Swipe the controller 2 it called 2 times due to which next class also called . Any Help would be much appreciated. func carbonTabSwipeNavigation(_ carbonTabSwipeNavigation: CarbonTabSwipeNavigation, viewControllerAt index: UInt) -> UIViewController { print("This is index(index)") guard let storyboard = storyboard else { return UIViewController() }