I have two view controllers. I have navigated from one view to another view by press the button to using below code.
*let secondViewController = self.storyboard!.instantiateViewControllerWithIdentifier("NotificationController") as! NotificationController
self.navigationController!.pushViewController(secondViewController, animated: true)*
For the back, I am using bar button on bar button click for back using below code.
self.navigationController?.popViewControllerAnimated(true)
So my problem is if I am going from one view to another view continuously then it added in a stack. I want to only show another view when it is already added to the stack to stop adding it.It only adds one time.