Skip to content

Commit c5f69f0

Browse files
authored
Renames AS_EXTERN and ASViewController (#1876)
* Renames AS_EXTERN and ASViewController To ASDK_EXTERN and ASDKViewController. This is to avoid conflicting with AuthenticationServices in Xcode 12 * Fix up examples and docs * Add bit about updating ASViewController rename
1 parent 8e91008 commit c5f69f0

File tree

111 files changed

+338
-337
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+338
-337
lines changed

AsyncDisplayKit.xcodeproj/project.pbxproj

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
254C6B8C1BF94F8A003EC431 /* ASTextKitTailTruncater.mm in Sources */ = {isa = PBXBuildFile; fileRef = 257754A21BEE44CD00737CA5 /* ASTextKitTailTruncater.mm */; };
6666
25E327571C16819500A2170C /* ASPagerNode.h in Headers */ = {isa = PBXBuildFile; fileRef = 25E327541C16819500A2170C /* ASPagerNode.h */; settings = {ATTRIBUTES = (Public, ); }; };
6767
25E327591C16819500A2170C /* ASPagerNode.mm in Sources */ = {isa = PBXBuildFile; fileRef = 25E327551C16819500A2170C /* ASPagerNode.mm */; };
68-
2767E9411BB19BD600EA9B77 /* ASViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = ACC945A81BA9E7A0005E1FB8 /* ASViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };
68+
2767E9411BB19BD600EA9B77 /* ASDKViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = ACC945A81BA9E7A0005E1FB8 /* ASDKViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };
6969
2911485C1A77147A005D0878 /* ASControlNodeTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2911485B1A77147A005D0878 /* ASControlNodeTests.mm */; };
7070
296A0A351A951ABF005ACEAA /* ASBatchFetchingTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 296A0A341A951ABF005ACEAA /* ASBatchFetchingTests.mm */; };
7171
29CDC2E21AAE70D000833CA4 /* ASBasicImageDownloaderContextTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = 29CDC2E11AAE70D000833CA4 /* ASBasicImageDownloaderContextTests.mm */; };
@@ -198,7 +198,7 @@
198198
9C6BB3B31B8CC9C200F13F52 /* ASAbsoluteLayoutElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 9C6BB3B01B8CC9C200F13F52 /* ASAbsoluteLayoutElement.h */; settings = {ATTRIBUTES = (Public, ); }; };
199199
9C70F2051CDA4F06007D6C76 /* ASTraitCollection.mm in Sources */ = {isa = PBXBuildFile; fileRef = 9C70F2021CDA4EFA007D6C76 /* ASTraitCollection.mm */; };
200200
9C70F2061CDA4F0C007D6C76 /* ASTraitCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = 9C70F2011CDA4EFA007D6C76 /* ASTraitCollection.h */; settings = {ATTRIBUTES = (Public, ); }; };
201-
9C70F2091CDABA36007D6C76 /* ASViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 9CFFC6BF1CCAC73C006A6476 /* ASViewController.mm */; };
201+
9C70F2091CDABA36007D6C76 /* ASDKViewController.mm in Sources */ = {isa = PBXBuildFile; fileRef = 9CFFC6BF1CCAC73C006A6476 /* ASDKViewController.mm */; };
202202
9C70F20A1CDBE949007D6C76 /* ASTableNode.mm in Sources */ = {isa = PBXBuildFile; fileRef = 9CFFC6C11CCAC768006A6476 /* ASTableNode.mm */; };
203203
9C70F20D1CDBE9CB007D6C76 /* ASDefaultPlayButton.h in Headers */ = {isa = PBXBuildFile; fileRef = AEB7B0181C5962EA00662EF4 /* ASDefaultPlayButton.h */; settings = {ATTRIBUTES = (Private, ); }; };
204204
9C70F20E1CDBE9E5007D6C76 /* NSArray+Diffing.h in Headers */ = {isa = PBXBuildFile; fileRef = DBC452D91C5BF64600B16017 /* NSArray+Diffing.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -390,7 +390,7 @@
390390
CC8B05D61D73836400F54286 /* ASPerformanceTestContext.mm in Sources */ = {isa = PBXBuildFile; fileRef = CC8B05D51D73836400F54286 /* ASPerformanceTestContext.mm */; };
391391
CC8B05D81D73979700F54286 /* ASTextNodePerformanceTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = CC8B05D71D73979700F54286 /* ASTextNodePerformanceTests.mm */; };
392392
CC90E1F41E383C0400FED591 /* AsyncDisplayKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B35061DA1B010EDF0018CF92 /* AsyncDisplayKit.framework */; };
393-
CCA221D31D6FA7EF00AF6A0F /* ASViewControllerTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = CCA221D21D6FA7EF00AF6A0F /* ASViewControllerTests.mm */; };
393+
CCA221D31D6FA7EF00AF6A0F /* ASDKViewControllerTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = CCA221D21D6FA7EF00AF6A0F /* ASDKViewControllerTests.mm */; };
394394
CCA282B41E9EA7310037E8B7 /* ASTipsController.h in Headers */ = {isa = PBXBuildFile; fileRef = CCA282B21E9EA7310037E8B7 /* ASTipsController.h */; };
395395
CCA282B51E9EA7310037E8B7 /* ASTipsController.mm in Sources */ = {isa = PBXBuildFile; fileRef = CCA282B31E9EA7310037E8B7 /* ASTipsController.mm */; };
396396
CCA282B81E9EA8E40037E8B7 /* AsyncDisplayKit+Tips.h in Headers */ = {isa = PBXBuildFile; fileRef = CCA282B61E9EA8E40037E8B7 /* AsyncDisplayKit+Tips.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -779,7 +779,7 @@
779779
9C70F2021CDA4EFA007D6C76 /* ASTraitCollection.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASTraitCollection.mm; sourceTree = "<group>"; };
780780
9C8898BA1C738B9800D6B02E /* ASTextKitFontSizeAdjuster.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = ASTextKitFontSizeAdjuster.mm; path = TextKit/ASTextKitFontSizeAdjuster.mm; sourceTree = "<group>"; };
781781
9CDC18CB1B910E12004965E2 /* ASLayoutElementPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASLayoutElementPrivate.h; sourceTree = "<group>"; };
782-
9CFFC6BF1CCAC73C006A6476 /* ASViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASViewController.mm; sourceTree = "<group>"; };
782+
9CFFC6BF1CCAC73C006A6476 /* ASDKViewController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASDKViewController.mm; sourceTree = "<group>"; };
783783
9CFFC6C11CCAC768006A6476 /* ASTableNode.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASTableNode.mm; sourceTree = "<group>"; };
784784
9D302F9A2231B07E005739C3 /* ASButtonNode+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ASButtonNode+Private.h"; sourceTree = "<group>"; };
785785
9D302F9C2231B373005739C3 /* ASButtonNode+Yoga.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ASButtonNode+Yoga.h"; sourceTree = "<group>"; };
@@ -803,7 +803,7 @@
803803
AC6145421D8AFD4F003D62A2 /* ASSection.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = ASSection.mm; path = ../Private/ASSection.mm; sourceTree = "<group>"; };
804804
AC6456071B0A335000CF11B8 /* ASCellNode.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASCellNode.mm; sourceTree = "<group>"; };
805805
AC7A2C161BDE11DF0093FE1A /* ASTableViewInternal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASTableViewInternal.h; sourceTree = "<group>"; };
806-
ACC945A81BA9E7A0005E1FB8 /* ASViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASViewController.h; sourceTree = "<group>"; };
806+
ACC945A81BA9E7A0005E1FB8 /* ASDKViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASDKViewController.h; sourceTree = "<group>"; };
807807
ACE87A2B1D73696800D7FF06 /* ASSectionContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ASSectionContext.h; path = Details/ASSectionContext.h; sourceTree = "<group>"; };
808808
ACF6ED011B17843500DA7C62 /* ASBackgroundLayoutSpec.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASBackgroundLayoutSpec.h; sourceTree = "<group>"; };
809809
ACF6ED021B17843500DA7C62 /* ASBackgroundLayoutSpec.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; lineEnding = 0; path = ASBackgroundLayoutSpec.mm; sourceTree = "<group>"; };
@@ -923,7 +923,7 @@
923923
CC8B05D41D73836400F54286 /* ASPerformanceTestContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASPerformanceTestContext.h; sourceTree = "<group>"; };
924924
CC8B05D51D73836400F54286 /* ASPerformanceTestContext.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASPerformanceTestContext.mm; sourceTree = "<group>"; };
925925
CC8B05D71D73979700F54286 /* ASTextNodePerformanceTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASTextNodePerformanceTests.mm; sourceTree = "<group>"; };
926-
CCA221D21D6FA7EF00AF6A0F /* ASViewControllerTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASViewControllerTests.mm; sourceTree = "<group>"; };
926+
CCA221D21D6FA7EF00AF6A0F /* ASDKViewControllerTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASDKViewControllerTests.mm; sourceTree = "<group>"; };
927927
CCA282B21E9EA7310037E8B7 /* ASTipsController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASTipsController.h; sourceTree = "<group>"; };
928928
CCA282B31E9EA7310037E8B7 /* ASTipsController.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ASTipsController.mm; sourceTree = "<group>"; };
929929
CCA282B61E9EA8E40037E8B7 /* AsyncDisplayKit+Tips.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "AsyncDisplayKit+Tips.h"; sourceTree = "<group>"; };
@@ -1275,8 +1275,8 @@
12751275
AEEC47E01C20C2DD00EC1693 /* ASVideoNode.mm */,
12761276
8BDA5FC31CDBDDE1007D13B2 /* ASVideoPlayerNode.h */,
12771277
8BDA5FC41CDBDDE1007D13B2 /* ASVideoPlayerNode.mm */,
1278-
ACC945A81BA9E7A0005E1FB8 /* ASViewController.h */,
1279-
9CFFC6BF1CCAC73C006A6476 /* ASViewController.mm */,
1278+
ACC945A81BA9E7A0005E1FB8 /* ASDKViewController.h */,
1279+
9CFFC6BF1CCAC73C006A6476 /* ASDKViewController.mm */,
12801280
68FC85E71CE29C7D00EDD713 /* ASVisibilityProtocols.h */,
12811281
68FC85E81CE29C7D00EDD713 /* ASVisibilityProtocols.mm */,
12821282
6BDC61F51978FEA400E50D21 /* AsyncDisplayKit.h */,
@@ -1386,7 +1386,7 @@
13861386
D933F040224AD17F00FF495E /* ASTransactionTests.mm */,
13871387
CC0AEEA31D66316E005D1C78 /* ASUICollectionViewTests.mm */,
13881388
AEEC47E31C21D3D200EC1693 /* ASVideoNodeTests.mm */,
1389-
CCA221D21D6FA7EF00AF6A0F /* ASViewControllerTests.mm */,
1389+
CCA221D21D6FA7EF00AF6A0F /* ASDKViewControllerTests.mm */,
13901390
83A7D95D1D446A6E00BF333E /* ASWeakMapTests.mm */,
13911391
CC3B208D1C3F7D0A00798563 /* ASWeakSetTests.mm */,
13921392
695BE2541DC1245C008E6EA5 /* ASWrapperSpecSnapshotTests.mm */,
@@ -2107,7 +2107,7 @@
21072107
CCA282B41E9EA7310037E8B7 /* ASTipsController.h in Headers */,
21082108
34EFC7711B701CFF00AD841F /* ASStackLayoutSpec.h in Headers */,
21092109
CCA282C01E9EAE010037E8B7 /* ASTip.h in Headers */,
2110-
2767E9411BB19BD600EA9B77 /* ASViewController.h in Headers */,
2110+
2767E9411BB19BD600EA9B77 /* ASDKViewController.h in Headers */,
21112111
92DD2FE81BF4D0A80074C9DD /* ASMapNode.h in Headers */,
21122112
9C6BB3B31B8CC9C200F13F52 /* ASAbsoluteLayoutElement.h in Headers */,
21132113
34EFC7731B701D0700AD841F /* ASAbsoluteLayoutSpec.h in Headers */,
@@ -2330,7 +2330,7 @@
23302330
ACF6ED5D1B178DC700DA7C62 /* ASDimensionTests.mm in Sources */,
23312331
BB5FC3D11F9C9389007F191E /* ASTabBarControllerTests.mm in Sources */,
23322332
695BE2551DC1245C008E6EA5 /* ASWrapperSpecSnapshotTests.mm in Sources */,
2333-
CCA221D31D6FA7EF00AF6A0F /* ASViewControllerTests.mm in Sources */,
2333+
CCA221D31D6FA7EF00AF6A0F /* ASDKViewControllerTests.mm in Sources */,
23342334
058D0A38195D057000B7D73C /* ASDisplayLayerTests.mm in Sources */,
23352335
2538B6F31BC5D2A2003CA0B4 /* ASCollectionViewFlowLayoutInspectorTests.mm in Sources */,
23362336
CC583AD61EF9BDBE00134156 /* ASTestCase.mm in Sources */,
@@ -2405,7 +2405,7 @@
24052405
DEB8ED7C1DD003D300DBDE55 /* ASLayoutTransition.mm in Sources */,
24062406
CCA5F62E1EECC2A80060C137 /* ASAssert.mm in Sources */,
24072407
9F98C0261DBE29E000476D92 /* ASControlTargetAction.mm in Sources */,
2408-
9C70F2091CDABA36007D6C76 /* ASViewController.mm in Sources */,
2408+
9C70F2091CDABA36007D6C76 /* ASDKViewController.mm in Sources */,
24092409
3917EBD51E9C2FC400D04A01 /* _ASCollectionReusableView.mm in Sources */,
24102410
CCA282D11E9EBF6C0037E8B7 /* ASTipsWindow.mm in Sources */,
24112411
CCCCCCE41EC3EF060087FE10 /* NSParagraphStyle+ASText.mm in Sources */,

Source/ASCellNode.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#import <AsyncDisplayKit/ASTextNode.h>
2121
#import <AsyncDisplayKit/ASCollectionNode.h>
2222

23-
#import <AsyncDisplayKit/ASViewController.h>
23+
#import <AsyncDisplayKit/ASDKViewController.h>
2424
#import <AsyncDisplayKit/ASInsetLayoutSpec.h>
2525
#import <AsyncDisplayKit/ASDisplayNodeInternal.h>
2626

@@ -79,8 +79,8 @@ - (void)didLoad
7979
_viewController = _viewControllerBlock();
8080
_viewControllerBlock = nil;
8181

82-
if ([_viewController isKindOfClass:[ASViewController class]]) {
83-
ASViewController *asViewController = (ASViewController *)_viewController;
82+
if ([_viewController isKindOfClass:[ASDKViewController class]]) {
83+
ASDKViewController *asViewController = (ASDKViewController *)_viewController;
8484
_viewControllerNode = asViewController.node;
8585
[_viewController loadViewIfNeeded];
8686
} else {

Source/ASConfigurationInternal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ NS_ASSUME_NONNULL_BEGIN
3434
/**
3535
* Internal function. Use the macro without the underbar.
3636
*/
37-
AS_EXTERN BOOL _ASActivateExperimentalFeature(ASExperimentalFeatures option);
37+
ASDK_EXTERN BOOL _ASActivateExperimentalFeature(ASExperimentalFeatures option);
3838

3939
/**
4040
* Notify the configuration delegate that the framework initialized, if needed.
4141
*/
42-
AS_EXTERN void ASNotifyInitialized(void);
42+
ASDK_EXTERN void ASNotifyInitialized(void);
4343

4444
AS_SUBCLASSING_RESTRICTED
4545
@interface ASConfigurationManager : NSObject

Source/ASContextTransitioning.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
NS_ASSUME_NONNULL_BEGIN
1616

17-
AS_EXTERN NSString * const ASTransitionContextFromLayoutKey;
18-
AS_EXTERN NSString * const ASTransitionContextToLayoutKey;
17+
ASDK_EXTERN NSString * const ASTransitionContextFromLayoutKey;
18+
ASDK_EXTERN NSString * const ASTransitionContextToLayoutKey;
1919

2020
@protocol ASContextTransitioning <NSObject>
2121

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// ASViewController.h
2+
// ASDKViewController.h
33
// Texture
44
//
55
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
@@ -19,29 +19,29 @@ typedef ASTraitCollection * _Nonnull (^ASDisplayTraitsForTraitCollectionBlock)(U
1919
typedef ASTraitCollection * _Nonnull (^ASDisplayTraitsForTraitWindowSizeBlock)(CGSize windowSize);
2020

2121
/**
22-
* ASViewController allows you to have a completely node backed hierarchy. It automatically
22+
* ASDKViewController allows you to have a completely node backed hierarchy. It automatically
2323
* handles @c ASVisibilityDepth, automatic range mode and propogating @c ASDisplayTraits to contained nodes.
2424
*
2525
* You can opt-out of node backed hierarchy and use it like a normal UIViewController.
2626
* More importantly, you can use it as a base class for all of your view controllers among which some use a node hierarchy and some don't.
2727
* See examples/ASDKgram project for actual implementation.
2828
*/
29-
@interface ASViewController<__covariant DisplayNodeType : ASDisplayNode *> : UIViewController <ASVisibilityDepth>
29+
@interface ASDKViewController<__covariant DisplayNodeType : ASDisplayNode *> : UIViewController <ASVisibilityDepth>
3030

3131
/**
32-
* ASViewController initializer.
32+
* ASDKViewController initializer.
3333
*
3434
* @param node An ASDisplayNode which will provide the root view (self.view)
35-
* @return An ASViewController instance whose root view will be backed by the provided ASDisplayNode.
35+
* @return An ASDKViewController instance whose root view will be backed by the provided ASDisplayNode.
3636
*
3737
* @see ASVisibilityDepth
3838
*/
3939
- (instancetype)initWithNode:(DisplayNodeType)node NS_DESIGNATED_INITIALIZER;
4040

4141
/**
42-
* ASViewController initializer. Useful for interoperability with normal UIViewControllers.
42+
* ASDKViewController initializer. Useful for interoperability with normal UIViewControllers.
4343
*
44-
* @return An ASViewController instance with a nil node whose root view will be backed by a standard UIView as with a normal UIViewController.
44+
* @return An ASDKViewController instance with a nil node whose root view will be backed by a standard UIView as with a normal UIViewController.
4545
*
4646
* @see ASVisibilityDepth
4747
*/
@@ -86,7 +86,7 @@ NS_ASSUME_NONNULL_BEGIN
8686

8787
@end
8888

89-
@interface ASViewController (ASRangeControllerUpdateRangeProtocol)
89+
@interface ASDKViewController (ASRangeControllerUpdateRangeProtocol)
9090

9191
/**
9292
* Automatically adjust range mode based on view events. If you set this to YES, the view controller or its node
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
//
2-
// ASViewController.mm
2+
// ASDKViewController.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/ASViewController.h>
10+
#import <AsyncDisplayKit/ASDKViewController.h>
1111
#import <AsyncDisplayKit/ASDisplayNode+FrameworkPrivate.h>
1212
#import <AsyncDisplayKit/ASLog.h>
1313
#import <AsyncDisplayKit/ASRangeControllerUpdateRangeProtocol+Beta.h>
1414
#import <AsyncDisplayKit/ASInternalHelpers.h>
1515
#import <AsyncDisplayKit/ASConfigurationInternal.h>
1616

17-
@implementation ASViewController
17+
@implementation ASDKViewController
1818
{
1919
BOOL _ensureDisplayed;
2020
BOOL _automaticallyAdjustRangeModeBasedOnViewEvents;
@@ -185,7 +185,7 @@ - (void)_updateNodeFallbackSafeArea
185185

186186
- (void)viewWillAppear:(BOOL)animated
187187
{
188-
as_activity_create_for_scope("ASViewController will appear");
188+
as_activity_create_for_scope("ASDKViewController will appear");
189189
os_log_debug(ASNodeLog(), "View controller %@ will appear", self);
190190

191191
[super viewWillAppear:animated];
@@ -323,13 +323,13 @@ - (void)propagateNewTraitCollection:(ASPrimitiveTraitCollection)traitCollection
323323
ASPrimitiveTraitCollection oldTraitCollection = self.node.primitiveTraitCollection;
324324

325325
if (ASPrimitiveTraitCollectionIsEqualToASPrimitiveTraitCollection(traitCollection, oldTraitCollection) == NO) {
326-
as_activity_scope_verbose(as_activity_create("Propagate ASViewController trait collection", AS_ACTIVITY_CURRENT, OS_ACTIVITY_FLAG_DEFAULT));
326+
as_activity_scope_verbose(as_activity_create("Propagate ASDKViewController trait collection", AS_ACTIVITY_CURRENT, OS_ACTIVITY_FLAG_DEFAULT));
327327
os_log_debug(ASNodeLog(), "Propagating new traits for %@: %@", self, NSStringFromASPrimitiveTraitCollection(traitCollection));
328328
ASTraitCollectionPropagateDown(self.node, traitCollection);
329329

330330
// Once we've propagated all the traits, layout this node.
331331
// Remeasure the node with the latest constrained size – old constrained size may be incorrect.
332-
as_activity_scope_verbose(as_activity_create("Layout ASViewController node with new traits", AS_ACTIVITY_CURRENT, OS_ACTIVITY_FLAG_DEFAULT));
332+
as_activity_scope_verbose(as_activity_create("Layout ASDKViewController node with new traits", AS_ACTIVITY_CURRENT, OS_ACTIVITY_FLAG_DEFAULT));
333333
[_node layoutThatFits:[self nodeConstrainedSize]];
334334
}
335335
}

Source/ASDisplayNode+Beta.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
NS_ASSUME_NONNULL_BEGIN
2121

22-
AS_EXTERN void ASPerformBlockOnMainThread(void (^block)(void));
23-
AS_EXTERN void ASPerformBlockOnBackgroundThread(void (^block)(void)); // DISPATCH_QUEUE_PRIORITY_DEFAULT
22+
ASDK_EXTERN void ASPerformBlockOnMainThread(void (^block)(void));
23+
ASDK_EXTERN void ASPerformBlockOnBackgroundThread(void (^block)(void)); // DISPATCH_QUEUE_PRIORITY_DEFAULT
2424

2525
/**
2626
* Bitmask to indicate what performance measurements the cell should record.

Source/ASDisplayNode+InterfaceState.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#import <Foundation/Foundation.h>
1010

1111
/**
12-
* Interface state is available on ASDisplayNode and ASViewController, and
12+
* Interface state is available on ASDisplayNode and ASDKViewController, and
1313
* allows checking whether a node is in an interface situation where it is prudent to trigger certain
1414
* actions: measurement, data loading, display, and visibility (the latter for animations or other onscreen-only effects).
1515
*

Source/ASDisplayNode+Layout.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ - (void)_rootNodeDidInvalidateSize
298298
// TODO
299299
// We should remove this logic, which is relatively new, and instead
300300
// rely on the parent / host of the root node to do this size change. That's always been the
301-
// expectation with other node containers like ASTableView, ASCollectionView, ASViewController, etc.
301+
// expectation with other node containers like ASTableView, ASCollectionView, ASDKViewController, etc.
302302
// E.g. in ASCellNode the _interactionDelegate is a Table or Collection that will resize in this
303303
// case. By resizing without participating with the parent, we could get cases where our parent size
304304
// does not match, especially if there is a size constraint that is applied at that level.

0 commit comments

Comments
 (0)