Skip default implementation of preferredLayoutAttributesFittingAttributes.

pull/1/head
Matthew Chen 7 years ago
parent 0fe22ee0e4
commit dd7e429318

@ -40,6 +40,13 @@ NS_ASSUME_NONNULL_BEGIN
} }
} }
// For perf reasons, skip the default implementation which is only relevant for self-sizing cells.
- (UICollectionViewLayoutAttributes *)preferredLayoutAttributesFittingAttributes:
(UICollectionViewLayoutAttributes *)layoutAttributes
{
return layoutAttributes;
}
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END

Loading…
Cancel
Save