You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am very new to Texture/AsyncDisplayKit. I am able to reproduce the issue with this simple code.
I basically want to show a 10x10 square at the bottom right of the ASCellNode. I am doing this via a ASDisplayNode which is being set as the corner of a ASCornerLayoutSpec. I have set the style.preferredSize of the ASDisplayNode to CGSize(width: 10, height: 10).
For some reason, the width is not working and showing up as 50% of the screen width:
The text was updated successfully, but these errors were encountered:
Pranoy1c
changed the title
Texture/AsyncDisplayKit ASDisplayNode preferredSize's width not working
ASDisplayNode in ASCornerLayoutSpec in ASCellNode: preferredSize's width not working
Jan 17, 2023
I am very new to
Texture/AsyncDisplayKit
. I am able to reproduce the issue with this simple code.I basically want to show a 10x10 square at the bottom right of the
ASCellNode
. I am doing this via aASDisplayNode
which is being set as the corner of aASCornerLayoutSpec
. I have set thestyle.preferredSize
of theASDisplayNode
toCGSize(width: 10, height: 10)
.For some reason, the width is not working and showing up as 50% of the screen width:
Code:
Any idea what am I doing wrong?
The text was updated successfully, but these errors were encountered: