Update doc in IGListAdapterUpdater

Summary: Make the comment doc block more concise.

Reviewed By: calimarkus

Differential Revision: D9596272

fbshipit-source-id: 1b957bb5a68a167d99c2cdd5874416d19f0a088b
This commit is contained in:
Zhisheng Huang 2018-08-30 15:25:41 -07:00 committed by Facebook Github Bot
parent 3cf7e3e95c
commit 66742f2309

View file

@ -37,11 +37,11 @@ NS_SWIFT_NAME(ListAdapterUpdater)
@property (nonatomic, assign) BOOL movesAsDeletesInserts;
/**
A flag indicating that during section reloads, if the number of items for the section is unchanged, we should
prefer to generate item reloads instead of treating as "delete section, then insert section" operation.
Instead, we would generate updated indexPaths to be used in `-[UICollectionView reloadItemsAtIndexPaths:]` during updates.
@note If the number of items for the section is changed, we would fallback to do the "delete section, then insert section" operation.
A flag indicating that section reloads should be treated as item reloads, instead of converting them to "delete, then insert" operations.
This only applies if the number of items for the section is unchanged.
@note If the number of items for the section is changed, we would fallback to the default behavior and convert it to "delete + insert",
because the collectionView can crash otherwise.
Default is NO.
*/