diff --git a/EarlGrey/Additions/UIViewController+GREYAdditions.m b/EarlGrey/Additions/UIViewController+GREYAdditions.m index 1770ebe4c..7bcc655a7 100644 --- a/EarlGrey/Additions/UIViewController+GREYAdditions.m +++ b/EarlGrey/Additions/UIViewController+GREYAdditions.m @@ -166,7 +166,7 @@ - (void)greyswizzled_viewWillAppear:(BOOL)animated { - (void)greyswizzled_viewDidAppear:(BOOL)animated { GREYAppStateTrackerObject *object = objc_getAssociatedObject(self, @selector(greyswizzled_viewWillAppear:)); - GREYAppState state = kGREYPendingViewsToAppear | kGREYPendingRootViewControllerToAppear; + GREYAppState state = kGREYPendingViewsToAppear | kGREYPendingRootViewControllerToAppear | kGREYPendingViewsToDisappear; UNTRACK_STATE_FOR_OBJECT(state, object); [self grey_setAppeared:YES];