-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ASWrapperCellNode] Introduce a new class allowing more control of UIKit passthrough cells. #797
Changes from 2 commits
87e5ee7
ad7a69d
f5754be
78d8a27
2791710
bdc3b3c
35efb21
c2b3f0b
962609f
24a18c9
1fb1802
de0f437
1195699
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,6 +109,30 @@ NS_ASSUME_NONNULL_BEGIN | |
*/ | ||
@property (nonatomic, assign) BOOL allowsMultipleSelection; | ||
|
||
/** | ||
* A Boolean value that determines whether bouncing always occurs when vertical scrolling reaches the end of the content. | ||
* The default value of this property is NO. | ||
*/ | ||
@property (nonatomic, assign) BOOL alwaysBounceVertical; | ||
|
||
/** | ||
* A Boolean value that determines whether bouncing always occurs when horizontal scrolling reaches the end of the content view. | ||
* The default value of this property is NO. | ||
*/ | ||
@property (nonatomic, assign) BOOL alwaysBounceHorizontal; | ||
|
||
/** | ||
* A Boolean value that controls whether the vertical scroll indicator is visible. | ||
* The default value of this property is YES. | ||
*/ | ||
@property (nonatomic, assign) BOOL showsVerticalScrollIndicator; | ||
|
||
/** | ||
* A Boolean value that controls whether the horizontal scroll indicator is visible. | ||
* The default value of this property is NO. | ||
*/ | ||
@property (nonatomic, assign) BOOL showsHorizontalScrollIndicator; | ||
|
||
/** | ||
* The layout used to organize the node's items. | ||
* | ||
|
@@ -291,6 +315,19 @@ NS_ASSUME_NONNULL_BEGIN | |
*/ | ||
- (void)waitUntilAllUpdatesAreProcessed; | ||
|
||
/** | ||
* Returns YES if the ASCollectionNode contents are completely synchronized with the underlying collection-view layout. | ||
*/ | ||
@property (nonatomic, readonly) BOOL isSynchronized; | ||
|
||
/** | ||
* Schedules a block to be performed (on the main thread) as soon as the completion block is called | ||
* on performBatchUpdates:. | ||
* | ||
* When isSynchronized == YES, the block is run block immediately (before the method returns). | ||
*/ | ||
- (void)onDidFinishSynchronizing:(nullable void (^)(void))didFinishSynchronizing; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: This decl says Probably best to let this argument default to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Adlai-Holler cool, fixed all definitions (and also made the change for the existing onDidFinishProcessingUpdates:). I moved Synchronizing to +Beta for now. A better name might be onDidFinishSynchronizingLayout, or ...LayoutSynchronization. Or even merging with onDidFinishProcessingUpdates with the option to specify a type of "finished", with synchronized including the end of animation. It's all a bit subtle and confusing, but having this call point available has been very useful even as the name remains a bit unclear. |
||
|
||
/** | ||
* Inserts one or more sections. | ||
* | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
synchronized
with anisSynchronized
getter?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Adlai-Holler This is an interesting case because it's a read-only property, so only the getter applies. I'm happy to change it in the name of convention, though it felt a bit unusual to write!