From 66742f23094b48d7c1a12ef116f8070f6e810cf4 Mon Sep 17 00:00:00 2001 From: Zhisheng Huang Date: Thu, 30 Aug 2018 15:25:41 -0700 Subject: [PATCH] Update doc in IGListAdapterUpdater Summary: Make the comment doc block more concise. Reviewed By: calimarkus Differential Revision: D9596272 fbshipit-source-id: 1b957bb5a68a167d99c2cdd5874416d19f0a088b --- Source/IGListAdapterUpdater.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/IGListAdapterUpdater.h b/Source/IGListAdapterUpdater.h index 6116e246..a279b4ae 100644 --- a/Source/IGListAdapterUpdater.h +++ b/Source/IGListAdapterUpdater.h @@ -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. */