Texture icon indicating copy to clipboard operation
Texture copied to clipboard

Switching Darkmode Nodes render for wrong userInterfaceStyle

Open ccomsi opened this issue 5 years ago • 1 comments

Hello 👋🏼 First of all, thank you for contributing to the Texture.

Report a problem when switching to dark mode.

Image nodes or button nodes in cell nodes do not render properly when the traitCollection is switched.

After running the sample project, I'm having trouble scrolling down after toggling userInterfaceStyle through the Environment overrides on Xcode menu. Here is the project link. https://github.com/ccomsi/TextureDarkmodeTest.git

Personally I think the problem is when the cell node's Interface State Ranges is Display. But I don't know how to fix it.

Simulator Screen Shot - iPhone 11 Pro Max - 2020-02-25 at 13 11 03

ccomsi avatar Feb 25 '20 04:02 ccomsi

add _image = drawImage; to line 304, ASImageNode.mm. will fix.

tengshuq avatar Jul 25 '21 13:07 tengshuq