Changed comment for clarity.

This commit is contained in:
Hannah Troisi 2016-04-17 21:53:01 -07:00
parent 354b972e73
commit 1ff07b2233

View File

@ -161,7 +161,8 @@
- (void)takeSnapshot
{
// set _snapshotNeeded to YES so if layout changes in the future, we'll try snapshotting again.
// If our size is zero, we want to avoid calling a default sized snapshot. Set _snapshotAfterLayout to YES
// so if layout changes in the future, we'll try snapshotting again.
ASLayout *layout = self.calculatedLayout;
if (layout == nil || CGSizeEqualToSize(CGSizeZero, layout.size)) {
_snapshotAfterLayout = YES;