I have 4 view controllers lets say A, B, C, and D and all these view controllers will be pushed as A->B->C->D.
I have a Dictionary in 'D' and I need to pass this to Dictionary 'A' and I need to Dismiss all the controllers except 'A' Controller to do some action with that received data passed from 'D'.
What are the approaches to pass data between view controllers and dismiss all sub controllers as per my requirement?