I am trying to save the state of the user in User Defaults whether he/she has visited a particular View Controller or not, if the person has visited the view controller before i don't want to show the animation again. I went through stack over flow and couldn't find a suitable explanation for the problem i am facing.
Everytime i am going to the particular view controller, it is showing the animation. I only wanted the animation to appear when the user has been on the view controller for the first time.
Some users are saying to use AppDelegate , but i think that's only used to detect whether the application did finish with launching with options for the first time or not. I do know how to use User Defaults in other scenarios but i am stuck here.
Any help is appreciated. Thanks!