From 72d7b57abb02abbffa99cd9905150640a8a8ef9e Mon Sep 17 00:00:00 2001 From: Garrett Moon Date: Thu, 12 May 2016 14:44:54 -0700 Subject: [PATCH] Don't add zero for readability --- AsyncDisplayKit/ASNavigationController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AsyncDisplayKit/ASNavigationController.m b/AsyncDisplayKit/ASNavigationController.m index 6b0c3b140b..a246aa33d4 100644 --- a/AsyncDisplayKit/ASNavigationController.m +++ b/AsyncDisplayKit/ASNavigationController.m @@ -39,8 +39,8 @@ ASVisibilityDepthImplementation; NSAssert(viewControllerIndex != NSNotFound, @"childViewController is not in the navigation stack."); if (viewControllerIndex == self.viewControllers.count - 1) { - //view controller is at the top - return [self visibilityDepth] + 0; + //view controller is at the top, just return our own visibility depth. + return [self visibilityDepth]; } else if (viewControllerIndex == 0) { //view controller is the root view controller. Can be accessed by holding the back button. return [self visibilityDepth] + 1;