Files
Texture/Source/ASDKNavigationController.h
ricky 1ae1e9cef9 Rename ASNavigationController to ASDKNavigationController to fix name collision (#2020)
As of iOS15 the AuthenticationServices framework has a class named `ASNavigationController`. We need to rename our `ASNavigationController` to protect against undefined behavior.

Note: This change was based on this PR https://github.com/TextureGroup/Texture/pull/2014. We were slow in merging it and the author has not replied, so I'm making a new one to get this landed.
2021-09-08 16:15:37 -07:00

31 lines
961 B
Objective-C

//
// ASDKNavigationController.h
// Texture
//
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
// Changes after 4/13/2017 are: Copyright (c) Pinterest, Inc. All rights reserved.
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
//
#import <UIKit/UIKit.h>
#import <AsyncDisplayKit/ASVisibilityProtocols.h>
NS_ASSUME_NONNULL_BEGIN
/**
* ASDKNavigationController
*
* @discussion ASDKNavigationController is a drop in replacement for UINavigationController
* which improves memory efficiency by implementing the @c ASManagesChildVisibilityDepth protocol.
* You can use ASDKNavigationController with regular UIViewControllers, as well as ASDKViewControllers.
* It is safe to subclass or use even where AsyncDisplayKit is not adopted.
*
* @see ASManagesChildVisibilityDepth
*/
@interface ASDKNavigationController : UINavigationController <ASManagesChildVisibilityDepth>
@end
NS_ASSUME_NONNULL_END