TextureSwiftSupport
TextureSwiftSupport copied to clipboard
ASTextNode text is overflowed in HStackLayout Whereas left padding ois
Why ASTextNode is overflowing instead of truncating…
HStackLayout(alignItems: .center) {
img1.preferredSize(.init(width: 20, height: 20)).padding(.left, 9)
img2.preferredSize(.init(width: 20, height: 20))
textNode.padding(.left, 6)
}
Try adding a .flexShrink(1)
to the text node. The stack needs to know that this node can be compressed horizontally