diff --git a/AsyncDisplayKit/ASCollectionView.mm b/AsyncDisplayKit/ASCollectionView.mm index bb0ea29a83..f90dedba83 100644 --- a/AsyncDisplayKit/ASCollectionView.mm +++ b/AsyncDisplayKit/ASCollectionView.mm @@ -749,7 +749,8 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell"; - (void)performBatchUpdates:(void (^)())updates completion:(void (^)(BOOL))completion { - [self performBatchAnimated:YES updates:updates completion:completion]; + // We capture the current state of whether animations are enabled if they don't provide us with one. + [self performBatchAnimated:[UIView areAnimationsEnabled] updates:updates completion:completion]; } - (void)registerSupplementaryNodeOfKind:(NSString *)elementKind diff --git a/AsyncDisplayKit/ASTableView.mm b/AsyncDisplayKit/ASTableView.mm index 60bf5df05b..fcbe83bca4 100644 --- a/AsyncDisplayKit/ASTableView.mm +++ b/AsyncDisplayKit/ASTableView.mm @@ -625,7 +625,8 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell"; - (void)endUpdates { - [self endUpdatesAnimated:YES completion:nil]; + // We capture the current state of whether animations are enabled if they don't provide us with one. + [self endUpdatesAnimated:[UIView areAnimationsEnabled] completion:nil]; } - (void)endUpdatesAnimated:(BOOL)animated completion:(void (^)(BOOL completed))completion;