We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash output:
0 CoreFoundation 0x000000010506212b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x00000001046f6f41 objc_exception_throw + 48 2 CoreFoundation 0x00000001050672f2 +[NSException raise:format:arguments:] + 98 3 Foundation 0x0000000104197d69 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193 4 AsyncDisplayKit 0x0000000103bb99e2 -[ASDisplayNode(UIViewBridge) backgroundColor] + 418 5 AsyncDisplayKit 0x0000000103d221df -[ASTextNode2 prepareAttributedStringForDrawing:] + 463 6 AsyncDisplayKit 0x0000000103d213ec -[ASTextNode2 calculateSizeThatFits:] + 1052
So the flow for calculating size that fits for ASTextNode2 is currently the following:
ASTextNode2
calculateSizeThatFits
prepareAttributedStringForDrawing
backgroundColor
ASDisplayNodeAssertThreadAffinity
This is an issue when using transitionLayout(animated: true, shouldMeasureAsync: true).
transitionLayout(animated: true, shouldMeasureAsync: true)
I've played around with commenting out the color handling in prepareAttributedStringForDrawing and I've found that this fixes the issue.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Crash output:
So the flow for calculating size that fits for
ASTextNode2
is currently the following:calculateSizeThatFits
relies onprepareAttributedStringForDrawing
prepareAttributedStringForDrawing
readsbackgroundColor
(it's not clear to me why this is required)backgroundColor
assertsASDisplayNodeAssertThreadAffinity
This is an issue when using
transitionLayout(animated: true, shouldMeasureAsync: true)
.I've played around with commenting out the color handling in
prepareAttributedStringForDrawing
and I've found that this fixes the issue.The text was updated successfully, but these errors were encountered: