Skip to content

Commit 1ae1e9c

Browse files
authored
Rename ASNavigationController to ASDKNavigationController to fix name collision (TextureGroup#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 TextureGroup#2014. We were slow in merging it and the author has not replied, so I'm making a new one to get this landed.
1 parent 03e7d1f commit 1ae1e9c

6 files changed

+34
-34
lines changed

AsyncDisplayKit.xcodeproj/project.pbxproj

+12-12
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
509E68651B3AEDC5009B9150 /* CoreGraphics+ASConvenience.h in Headers */ = {isa = PBXBuildFile; fileRef = 205F0E1F1B376416007741D0 /* CoreGraphics+ASConvenience.h */; settings = {ATTRIBUTES = (Public, ); }; };
112112
636EA1A41C7FF4EC00EE152F /* NSArray+Diffing.mm in Sources */ = {isa = PBXBuildFile; fileRef = DBC452DA1C5BF64600B16017 /* NSArray+Diffing.mm */; };
113113
636EA1A51C7FF4EF00EE152F /* ASDefaultPlayButton.mm in Sources */ = {isa = PBXBuildFile; fileRef = AEB7B0191C5962EA00662EF4 /* ASDefaultPlayButton.mm */; };
114-
680346941CE4052A0009FEB4 /* ASNavigationController.h in Headers */ = {isa = PBXBuildFile; fileRef = 68FC85DC1CE29AB700EDD713 /* ASNavigationController.h */; settings = {ATTRIBUTES = (Public, ); }; };
114+
680346941CE4052A0009FEB4 /* ASDKNavigationController.h in Headers */ = {isa = PBXBuildFile; fileRef = 68FC85DC1CE29AB700EDD713 /* ASDKNavigationController.h */; settings = {ATTRIBUTES = (Public, ); }; };
115115
68355B341CB579B9001D4E68 /* ASImageNode+AnimatedImage.mm in Sources */ = {isa = PBXBuildFile; fileRef = 68355B2E1CB5799E001D4E68 /* ASImageNode+AnimatedImage.mm */; };
116116
68355B3E1CB57A60001D4E68 /* ASPINRemoteImageDownloader.mm in Sources */ = {isa = PBXBuildFile; fileRef = 68355B361CB57A5A001D4E68 /* ASPINRemoteImageDownloader.mm */; };
117117
68355B401CB57A69001D4E68 /* ASImageContainerProtocolCategories.mm in Sources */ = {isa = PBXBuildFile; fileRef = 68355B381CB57A5A001D4E68 /* ASImageContainerProtocolCategories.mm */; };
@@ -127,7 +127,7 @@
127127
68EE0DC01C1B4ED300BA1B99 /* ASMainSerialQueue.mm in Sources */ = {isa = PBXBuildFile; fileRef = 68EE0DBC1C1B4ED300BA1B99 /* ASMainSerialQueue.mm */; };
128128
68FC85E31CE29B7E00EDD713 /* ASTabBarController.h in Headers */ = {isa = PBXBuildFile; fileRef = 68FC85E01CE29B7E00EDD713 /* ASTabBarController.h */; settings = {ATTRIBUTES = (Public, ); }; };
129129
68FC85E51CE29B7E00EDD713 /* ASTabBarController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 68FC85E11CE29B7E00EDD713 /* ASTabBarController.mm */; };
130-
68FC85E61CE29B9400EDD713 /* ASNavigationController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 68FC85DD1CE29AB700EDD713 /* ASNavigationController.mm */; };
130+
68FC85E61CE29B9400EDD713 /* ASDKNavigationController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 68FC85DD1CE29AB700EDD713 /* ASDKNavigationController.mm */; };
131131
68FC85EA1CE29C7D00EDD713 /* ASVisibilityProtocols.h in Headers */ = {isa = PBXBuildFile; fileRef = 68FC85E71CE29C7D00EDD713 /* ASVisibilityProtocols.h */; settings = {ATTRIBUTES = (Public, ); }; };
132132
68FC85EC1CE29C7D00EDD713 /* ASVisibilityProtocols.mm in Sources */ = {isa = PBXBuildFile; fileRef = 68FC85E81CE29C7D00EDD713 /* ASVisibilityProtocols.mm */; };
133133
6900C5F41E8072DA00BCD75C /* ASImageNode+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 6900C5F31E8072DA00BCD75C /* ASImageNode+Private.h */; };
@@ -335,7 +335,7 @@
335335
B350625C1B010F070018CF92 /* ASLog.h in Headers */ = {isa = PBXBuildFile; fileRef = 0516FA3B1A15563400B4EBED /* ASLog.h */; settings = {ATTRIBUTES = (Public, ); }; };
336336
B350625D1B0111740018CF92 /* Photos.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 051943141A1575670030A7D0 /* Photos.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
337337
B350625E1B0111780018CF92 /* AssetsLibrary.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 051943121A1575630030A7D0 /* AssetsLibrary.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
338-
BB5FC3CE1F9BA689007F191E /* ASNavigationControllerTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = BB5FC3CD1F9BA688007F191E /* ASNavigationControllerTests.mm */; };
338+
BB5FC3CE1F9BA689007F191E /* ASDKNavigationControllerTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = BB5FC3CD1F9BA688007F191E /* ASDKNavigationControllerTests.mm */; };
339339
BB5FC3D11F9C9389007F191E /* ASTabBarControllerTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = BB5FC3D01F9C9389007F191E /* ASTabBarControllerTests.mm */; };
340340
C018DF21216BF26700181FDA /* ASAbstractLayoutController+FrameworkPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = C018DF20216BF26600181FDA /* ASAbstractLayoutController+FrameworkPrivate.h */; };
341341
C057D9BD20B5453D00FC9112 /* ASTextNode2SnapshotTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = C057D9BC20B5453D00FC9112 /* ASTextNode2SnapshotTests.mm */; };
@@ -702,8 +702,8 @@
702702
68C215571DE10D330019C4BC /* ASCollectionViewLayoutInspector.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASCollectionViewLayoutInspector.mm; sourceTree = "<group>"; };
703703
68EE0DBB1C1B4ED300BA1B99 /* ASMainSerialQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASMainSerialQueue.h; sourceTree = "<group>"; };
704704
68EE0DBC1C1B4ED300BA1B99 /* ASMainSerialQueue.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASMainSerialQueue.mm; sourceTree = "<group>"; };
705-
68FC85DC1CE29AB700EDD713 /* ASNavigationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASNavigationController.h; sourceTree = "<group>"; };
706-
68FC85DD1CE29AB700EDD713 /* ASNavigationController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASNavigationController.mm; sourceTree = "<group>"; };
705+
68FC85DC1CE29AB700EDD713 /* ASDKNavigationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASDKNavigationController.h; sourceTree = "<group>"; };
706+
68FC85DD1CE29AB700EDD713 /* ASDKNavigationController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASDKNavigationController.mm; sourceTree = "<group>"; };
707707
68FC85E01CE29B7E00EDD713 /* ASTabBarController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASTabBarController.h; sourceTree = "<group>"; };
708708
68FC85E11CE29B7E00EDD713 /* ASTabBarController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASTabBarController.mm; sourceTree = "<group>"; };
709709
68FC85E71CE29C7D00EDD713 /* ASVisibilityProtocols.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASVisibilityProtocols.h; sourceTree = "<group>"; };
@@ -868,7 +868,7 @@
868868
B30BF6501C5964B0004FCD53 /* ASLayoutManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ASLayoutManager.h; path = TextKit/ASLayoutManager.h; sourceTree = "<group>"; };
869869
B30BF6511C5964B0004FCD53 /* ASLayoutManager.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = ASLayoutManager.mm; path = TextKit/ASLayoutManager.mm; sourceTree = "<group>"; };
870870
B35061DA1B010EDF0018CF92 /* AsyncDisplayKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = AsyncDisplayKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
871-
BB5FC3CD1F9BA688007F191E /* ASNavigationControllerTests.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = ASNavigationControllerTests.mm; sourceTree = "<group>"; };
871+
BB5FC3CD1F9BA688007F191E /* ASDKNavigationControllerTests.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = ASDKNavigationControllerTests.mm; sourceTree = "<group>"; };
872872
BB5FC3D01F9C9389007F191E /* ASTabBarControllerTests.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = ASTabBarControllerTests.mm; sourceTree = "<group>"; };
873873
BDC2D162BD55A807C1475DA5 /* Pods-AsyncDisplayKitTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AsyncDisplayKitTests.profile.xcconfig"; path = "Pods/Target Support Files/Pods-AsyncDisplayKitTests/Pods-AsyncDisplayKitTests.profile.xcconfig"; sourceTree = "<group>"; };
874874
C018DF20216BF26600181FDA /* ASAbstractLayoutController+FrameworkPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ASAbstractLayoutController+FrameworkPrivate.h"; sourceTree = "<group>"; };
@@ -1244,8 +1244,8 @@
12441244
92DD2FE21BF4B97E0074C9DD /* ASMapNode.mm */,
12451245
0516FA3E1A1563D200B4EBED /* ASMultiplexImageNode.h */,
12461246
0516FA3F1A1563D200B4EBED /* ASMultiplexImageNode.mm */,
1247-
68FC85DC1CE29AB700EDD713 /* ASNavigationController.h */,
1248-
68FC85DD1CE29AB700EDD713 /* ASNavigationController.mm */,
1247+
68FC85DC1CE29AB700EDD713 /* ASDKNavigationController.h */,
1248+
68FC85DD1CE29AB700EDD713 /* ASDKNavigationController.mm */,
12491249
CCED5E3C2020D36800395C40 /* ASNetworkImageLoadInfo.h */,
12501250
CCED5E3D2020D36800395C40 /* ASNetworkImageLoadInfo.mm */,
12511251
055B9FA61A1C154B00035D6D /* ASNetworkImageNode.h */,
@@ -1356,7 +1356,7 @@
13561356
CCE4F9B71F0DBA5000062E4E /* ASLayoutTestNode.mm */,
13571357
052EE0651A159FEF002C6279 /* ASMultiplexImageNodeTests.mm */,
13581358
058D0A32195D057000B7D73C /* ASMutableAttributedStringBuilderTests.mm */,
1359-
BB5FC3CD1F9BA688007F191E /* ASNavigationControllerTests.mm */,
1359+
BB5FC3CD1F9BA688007F191E /* ASDKNavigationControllerTests.mm */,
13601360
CC11F9791DB181180024D77B /* ASNetworkImageNodeTests.mm */,
13611361
ACF6ED591B178DC700DA7C62 /* ASOverlayLayoutSpecSnapshotTests.mm */,
13621362
AE6987C01DD04E1000B9E458 /* ASPagerNodeTests.mm */,
@@ -1980,7 +1980,7 @@
19801980
B35061FE1B010EFD0018CF92 /* ASDisplayNodeExtras.h in Headers */,
19811981
CC0F88601E4280B800576FED /* _ASCollectionViewCell.h in Headers */,
19821982
B35062001B010EFD0018CF92 /* ASEditableTextNode.h in Headers */,
1983-
680346941CE4052A0009FEB4 /* ASNavigationController.h in Headers */,
1983+
680346941CE4052A0009FEB4 /* ASDKNavigationController.h in Headers */,
19841984
B350621B1B010EFD0018CF92 /* ASTableLayoutController.h in Headers */,
19851985
B350621D1B010EFD0018CF92 /* ASHighlightOverlayLayer.h in Headers */,
19861986
C78F7E2B1BF7809800CDEAFC /* ASTableNode.h in Headers */,
@@ -2329,7 +2329,7 @@
23292329
CC01EB6F23105C7F00CDB61A /* ASImageNodeSnapshotTests.mm in Sources */,
23302330
CC3B208E1C3F7D0A00798563 /* ASWeakSetTests.mm in Sources */,
23312331
F711994E1D20C21100568860 /* ASDisplayNodeExtrasTests.mm in Sources */,
2332-
BB5FC3CE1F9BA689007F191E /* ASNavigationControllerTests.mm in Sources */,
2332+
BB5FC3CE1F9BA689007F191E /* ASDKNavigationControllerTests.mm in Sources */,
23332333
81FF150722EB5F410039311A /* ASButtonNodeSnapshotTests.mm in Sources */,
23342334
ACF6ED5D1B178DC700DA7C62 /* ASDimensionTests.mm in Sources */,
23352335
BB5FC3D11F9C9389007F191E /* ASTabBarControllerTests.mm in Sources */,
@@ -2528,7 +2528,7 @@
25282528
B35062271B010EFD0018CF92 /* ASRangeController.mm in Sources */,
25292529
0442850A1BAA63FE00D16268 /* ASBatchFetching.mm in Sources */,
25302530
CC35CEC420DD7F600006448D /* ASCollections.mm in Sources */,
2531-
68FC85E61CE29B9400EDD713 /* ASNavigationController.mm in Sources */,
2531+
68FC85E61CE29B9400EDD713 /* ASDKNavigationController.mm in Sources */,
25322532
9C0BA4A42582CE35001C293B /* ASTextAttribute.mm in Sources */,
25332533
34EFC76F1B701CF700AD841F /* ASRatioLayoutSpec.mm in Sources */,
25342534
254C6B8B1BF94F8A003EC431 /* ASTextKitShadower.mm in Sources */,

Source/ASNavigationController.h renamed to Source/ASDKNavigationController.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// ASNavigationController.h
2+
// ASDKNavigationController.h
33
// Texture
44
//
55
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@@ -14,16 +14,16 @@
1414
NS_ASSUME_NONNULL_BEGIN
1515

1616
/**
17-
* ASNavigationController
17+
* ASDKNavigationController
1818
*
19-
* @discussion ASNavigationController is a drop in replacement for UINavigationController
19+
* @discussion ASDKNavigationController is a drop in replacement for UINavigationController
2020
* which improves memory efficiency by implementing the @c ASManagesChildVisibilityDepth protocol.
21-
* You can use ASNavigationController with regular UIViewControllers, as well as ASDKViewControllers.
21+
* You can use ASDKNavigationController with regular UIViewControllers, as well as ASDKViewControllers.
2222
* It is safe to subclass or use even where AsyncDisplayKit is not adopted.
2323
*
2424
* @see ASManagesChildVisibilityDepth
2525
*/
26-
@interface ASNavigationController : UINavigationController <ASManagesChildVisibilityDepth>
26+
@interface ASDKNavigationController : UINavigationController <ASManagesChildVisibilityDepth>
2727

2828
@end
2929

Source/ASNavigationController.mm renamed to Source/ASDKNavigationController.mm

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
//
2-
// ASNavigationController.mm
2+
// ASDKNavigationController.mm
33
// Texture
44
//
55
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
66
// Changes after 4/13/2017 are: Copyright (c) Pinterest, Inc. All rights reserved.
77
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
88
//
99

10-
#import <AsyncDisplayKit/ASNavigationController.h>
10+
#import <AsyncDisplayKit/ASDKNavigationController.h>
1111
#import <AsyncDisplayKit/ASLog.h>
1212
#import <AsyncDisplayKit/ASObjectDescriptionHelpers.h>
1313

14-
@implementation ASNavigationController
14+
@implementation ASDKNavigationController
1515
{
1616
BOOL _parentManagesVisibilityDepth;
1717
NSInteger _visibilityDepth;
@@ -59,7 +59,7 @@ - (NSInteger)visibilityDepthOfChildViewController:(UIViewController *)childViewC
5959

6060
- (NSArray *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated
6161
{
62-
as_activity_create_for_scope("Pop multiple from ASNavigationController");
62+
as_activity_create_for_scope("Pop multiple from ASDKNavigationController");
6363
NSArray *viewControllers = [super popToViewController:viewController animated:animated];
6464
os_log_info(ASNodeLog(), "Popped %@ to %@, removing %@", self, viewController, ASGetDescriptionValueString(viewControllers));
6565

@@ -69,7 +69,7 @@ - (NSArray *)popToViewController:(UIViewController *)viewController animated:(BO
6969

7070
- (NSArray *)popToRootViewControllerAnimated:(BOOL)animated
7171
{
72-
as_activity_create_for_scope("Pop to root of ASNavigationController");
72+
as_activity_create_for_scope("Pop to root of ASDKNavigationController");
7373
NSArray *viewControllers = [super popToRootViewControllerAnimated:animated];
7474
os_log_info(ASNodeLog(), "Popped view controllers %@ from %@", ASGetDescriptionValueString(viewControllers), self);
7575

@@ -87,23 +87,23 @@ - (void)setViewControllers:(NSArray *)viewControllers
8787

8888
- (void)setViewControllers:(NSArray *)viewControllers animated:(BOOL)animated
8989
{
90-
as_activity_create_for_scope("Set view controllers of ASNavigationController");
90+
as_activity_create_for_scope("Set view controllers of ASDKNavigationController");
9191
os_log_info(ASNodeLog(), "Set view controllers of %@ to %@ animated: %d", self, ASGetDescriptionValueString(viewControllers), animated);
9292
[super setViewControllers:viewControllers animated:animated];
9393
[self visibilityDepthDidChange];
9494
}
9595

9696
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
9797
{
98-
as_activity_create_for_scope("Push view controller on ASNavigationController");
98+
as_activity_create_for_scope("Push view controller on ASDKNavigationController");
9999
os_log_info(ASNodeLog(), "Pushing %@ onto %@", viewController, self);
100100
[super pushViewController:viewController animated:animated];
101101
[self visibilityDepthDidChange];
102102
}
103103

104104
- (UIViewController *)popViewControllerAnimated:(BOOL)animated
105105
{
106-
as_activity_create_for_scope("Pop view controller from ASNavigationController");
106+
as_activity_create_for_scope("Pop view controller from ASDKNavigationController");
107107
UIViewController *viewController = [super popViewControllerAnimated:animated];
108108
os_log_info(ASNodeLog(), "Popped %@ from %@", viewController, self);
109109
[self visibilityDepthDidChange];

Source/ASVisibilityProtocols.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ASDK_EXTERN ASLayoutRangeMode ASLayoutRangeModeForVisibilityDepth(NSUInteger vis
5353
* has changed.
5454
*
5555
* If implemented by a view controller container, use this method to notify child view controllers that their view
56-
* depth has changed @see ASNavigationController.m
56+
* depth has changed @see ASDKNavigationController.m
5757
*
5858
* If implemented on an ASDKViewController, use this method to reduce or increase the resources that your
5959
* view controller uses. A higher visibility depth view controller should decrease it's resource usage, a lower
@@ -80,7 +80,7 @@ ASDK_EXTERN ASLayoutRangeMode ASLayoutRangeModeForVisibilityDepth(NSUInteger vis
8080

8181
/**
8282
* @abstract Container view controllers should adopt this protocol to indicate that they will manage their child's
83-
* visibilityDepth. For example, ASNavigationController adopts this protocol and manages its childrens visibility
83+
* visibilityDepth. For example, ASDKNavigationController adopts this protocol and manages its childrens visibility
8484
* depth.
8585
*
8686
* If you adopt this protocol, you *must* also emit visibilityDepthDidChange messages to child view controllers.

Source/AsyncDisplayKit.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
#import <AsyncDisplayKit/ASNodeController+Beta.h>
6767
#import <AsyncDisplayKit/ASDKViewController.h>
68-
#import <AsyncDisplayKit/ASNavigationController.h>
68+
#import <AsyncDisplayKit/ASDKNavigationController.h>
6969
#import <AsyncDisplayKit/ASTabBarController.h>
7070
#import <AsyncDisplayKit/ASRangeControllerUpdateRangeProtocol+Beta.h>
7171

Tests/ASNavigationControllerTests.mm renamed to Tests/ASDKNavigationControllerTests.mm

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// ASNavigationControllerTests.mm
2+
// ASDKNavigationControllerTests.mm
33
// Texture
44
//
55
// Copyright (c) Pinterest, Inc. All rights reserved.
@@ -10,16 +10,16 @@
1010

1111
#import <AsyncDisplayKit/AsyncDisplayKit.h>
1212

13-
@interface ASNavigationControllerTests : XCTestCase
13+
@interface ASDKNavigationControllerTests : XCTestCase
1414
@end
1515

16-
@implementation ASNavigationControllerTests
16+
@implementation ASDKNavigationControllerTests
1717

1818
- (void)testSetViewControllers {
1919
ASDKViewController *firstController = [ASDKViewController new];
2020
ASDKViewController *secondController = [ASDKViewController new];
2121
NSArray *expectedViewControllerStack = @[firstController, secondController];
22-
ASNavigationController *navigationController = [ASNavigationController new];
22+
ASDKNavigationController *navigationController = [ASDKNavigationController new];
2323
[navigationController setViewControllers:@[firstController, secondController]];
2424
XCTAssertEqual(navigationController.topViewController, secondController);
2525
XCTAssertEqual(navigationController.visibleViewController, secondController);
@@ -30,7 +30,7 @@ - (void)testPopViewController {
3030
ASDKViewController *firstController = [ASDKViewController new];
3131
ASDKViewController *secondController = [ASDKViewController new];
3232
NSArray *expectedViewControllerStack = @[firstController];
33-
ASNavigationController *navigationController = [ASNavigationController new];
33+
ASDKNavigationController *navigationController = [ASDKNavigationController new];
3434
[navigationController setViewControllers:@[firstController, secondController]];
3535
[navigationController popViewControllerAnimated:false];
3636
XCTAssertEqual(navigationController.topViewController, firstController);
@@ -42,7 +42,7 @@ - (void)testPushViewController {
4242
ASDKViewController *firstController = [ASDKViewController new];
4343
ASDKViewController *secondController = [ASDKViewController new];
4444
NSArray *expectedViewControllerStack = @[firstController, secondController];
45-
ASNavigationController *navigationController = [[ASNavigationController new] initWithRootViewController:firstController];
45+
ASDKNavigationController *navigationController = [[ASDKNavigationController new] initWithRootViewController:firstController];
4646
[navigationController pushViewController:secondController animated:false];
4747
XCTAssertEqual(navigationController.topViewController, secondController);
4848
XCTAssertEqual(navigationController.visibleViewController, secondController);

0 commit comments

Comments
 (0)