mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-03-27 22:46:35 +08:00
assert we are on the main thread before accessing view.
This commit is contained in:
@@ -195,6 +195,7 @@ ASVisibilityDepthImplementation;
|
||||
return [asyncTraitCollection environmentTraitCollection];
|
||||
}
|
||||
|
||||
ASDisplayNodeAssertMainThread();
|
||||
ASEnvironmentTraitCollection asyncTraitCollection = ASEnvironmentTraitCollectionFromUITraitCollection(traitCollection);
|
||||
asyncTraitCollection.containerWindowSize = self.view.frame.size;
|
||||
return asyncTraitCollection;
|
||||
|
||||
Reference in New Issue
Block a user