diff --git a/Tests/ASSnapshotTestCase.mm b/Tests/ASSnapshotTestCase.mm index 160b8f86c..b6530b05a 100644 --- a/Tests/ASSnapshotTestCase.mm +++ b/Tests/ASSnapshotTestCase.mm @@ -36,7 +36,7 @@ + (void)hackilySynchronouslyRecursivelyRenderNode:(ASDisplayNode *)node // Since the goal of this method is to just to ensure a node is rendered before snapshotting, this should be reasonable default for all callers. #if AS_AT_LEAST_IOS13 if (@available(iOS 13.0, *)) { - node.primitiveTraitCollection = ASPrimitiveTraitCollectionFromUITraitCollection(UITraitCollection.currentTraitCollection); + ASTraitCollectionPropagateDown(node, ASPrimitiveTraitCollectionFromUITraitCollection(UITraitCollection.currentTraitCollection)); } #endif // #if AS_AT_LEAST_IOS13 node.displaysAsynchronously = NO;