You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
* Add inverted property to ASTableNode
* Add inverted property to ASCollectionNode
* Add example
* De-inform data controller and use different CATransform3D
* Add logic to pending state
* Add accessor for inverted property
Copy file name to clipboardExpand all lines: AsyncDisplayKit/ASCollectionNode.h
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,12 @@ NS_ASSUME_NONNULL_BEGIN
74
74
*/
75
75
@property (weak, nonatomic) id <ASCollectionDataSource> dataSource;
76
76
77
+
/*
78
+
* A Boolean value that determines whether the collection node will be flipped.
79
+
* If the value of this property is YES, the first cell node will be at the bottom of the collection node (as opposed to the top by default). This is useful for chat/messaging apps. The default value is NO.
80
+
*/
81
+
@property (nonatomic, assign) BOOL inverted;
82
+
77
83
/**
78
84
* A Boolean value that indicates whether users can select items in the collection node.
79
85
* If the value of this property is YES (the default), users can select items. If you want more fine-grained control over the selection of items, you must provide a delegate object and implement the appropriate methods of the UICollectionNodeDelegate protocol.
Copy file name to clipboardExpand all lines: AsyncDisplayKit/ASTableNode.h
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,11 @@ NS_ASSUME_NONNULL_BEGIN
35
35
@property (weak, nonatomic) id <ASTableDelegate> delegate;
36
36
@property (weak, nonatomic) id <ASTableDataSource> dataSource;
37
37
38
+
/*
39
+
* A Boolean value that determines whether the table will be flipped.
40
+
* If the value of this property is YES, the first cell node will be at the bottom of the table (as opposed to the top by default). This is useful for chat/messaging apps. The default value is NO.
41
+
*/
42
+
@property (nonatomic, assign) BOOL inverted;
38
43
/*
39
44
* A Boolean value that determines whether users can select a row.
40
45
* If the value of this property is YES (the default), users can select rows. If you set it to NO, they cannot select rows. Setting this property affects cell selection only when the table view is not in editing mode. If you want to restrict selection of cells in editing mode, use `allowsSelectionDuringEditing`.
Copy file name to clipboardExpand all lines: AsyncDisplayKit/Private/ASDisplayNode+UIViewBridge.mm
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -218,10 +218,10 @@ - (CGRect)frame
218
218
_bridge_prologue_read;
219
219
220
220
// Frame is only defined when transform is identity.
221
-
#if DEBUG
222
-
// Checking if the transform is identity is expensive, so disable when unnecessary. We have assertions on in Release, so DEBUG is the only way I know of.
223
-
ASDisplayNodeAssert(CATransform3DIsIdentity(self.transform), @"-[ASDisplayNode frame] - self.transform must be identity in order to use the frame property. (From Apple's UIView documentation: If the transform property is not the identity transform, the value of this property is undefined and therefore should be ignored.)");
224
-
#endif
221
+
//#if DEBUG
222
+
// // Checking if the transform is identity is expensive, so disable when unnecessary. We have assertions on in Release, so DEBUG is the only way I know of.
223
+
// ASDisplayNodeAssert(CATransform3DIsIdentity(self.transform), @"-[ASDisplayNode frame] - self.transform must be identity in order to use the frame property. (From Apple's UIView documentation: If the transform property is not the identity transform, the value of this property is undefined and therefore should be ignored.)");
// We do have to set frame directly, and we're on main thread with a loaded node.
278
278
// Just set the frame on the view.
279
279
// NOTE: Frame is only defined when transform is identity because we explicitly diverge from CALayer behavior and define frame without transform.
280
-
#if DEBUG
281
-
// Checking if the transform is identity is expensive, so disable when unnecessary. We have assertions on in Release, so DEBUG is the only way I know of.
282
-
ASDisplayNodeAssert(CATransform3DIsIdentity(self.transform), @"-[ASDisplayNode setFrame:] - self.transform must be identity in order to set the frame property. (From Apple's UIView documentation: If the transform property is not the identity transform, the value of this property is undefined and therefore should be ignored.)");
283
-
#endif
280
+
//#if DEBUG
281
+
// // Checking if the transform is identity is expensive, so disable when unnecessary. We have assertions on in Release, so DEBUG is the only way I know of.
282
+
// ASDisplayNodeAssert(CATransform3DIsIdentity(self.transform), @"-[ASDisplayNode setFrame:] - self.transform must be identity in order to set the frame property. (From Apple's UIView documentation: If the transform property is not the identity transform, the value of this property is undefined and therefore should be ignored.)");
283
+
//#endif
284
284
_view.frame = rect;
285
285
} else {
286
286
// We do have to set frame directly, but either the node isn't loaded or we're on a non-main thread.
0 commit comments