Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhuy committed Jul 10, 2017
1 parent 7b0c9f8 commit a82a0be
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Source/Details/ASCollectionGalleryLayoutDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ - (instancetype)init __unavailable;
NS_ASSUME_NONNULL_END

@implementation _ASGalleryLayoutItem {
ASPrimitiveTraitCollection _primitiveTraitCollection;
std::atomic<ASPrimitiveTraitCollection> _primitiveTraitCollection;
}

@synthesize style;
Expand Down Expand Up @@ -107,6 +107,18 @@ - (ASLayout *)calculateLayoutThatFits:(ASSizeRange)constrainedSize
return [ASLayout layoutWithLayoutElement:self size:_itemSize];
}

#pragma mark - ASLayoutElementAsciiArtProtocol

- (NSString *)asciiArtString
{
return [ASLayoutSpec asciiArtStringForChildren:@[] parentName:[self asciiArtName]];
}

- (NSString *)asciiArtName
{
return [NSMutableString stringWithCString:object_getClassName(self) encoding:NSASCIIStringEncoding];
}

@end

#pragma mark - _ASGalleryLayoutStateAdditionInfo
Expand Down

0 comments on commit a82a0be

Please sign in to comment.