Texture icon indicating copy to clipboard operation
Texture copied to clipboard

ASButtonNode only follow dark mode once, then not working

Open ruixingchen opened this issue 4 years ago • 1 comments

I just use ASButtonNode as a normal view, add it to a view directly

let button = ASButtonNode.init()
button.setTitle("XXXX", with: UIFont.systemFont(ofSize: 17), with: UIColor.label, for: .normal)
self.view.addSubnode(button)
button.frame = CGRect.init(x: 16, y: 100, width: 100, height: 100)

the first time I change dark/light mode, it follows, but next time it can't, it only works at the vary first time

version: 3.0.0 test on iOS 14.4 iPhone 12/simulator

ruixingchen avatar Mar 19 '21 04:03 ruixingchen

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

tengshuq avatar Jul 25 '21 13:07 tengshuq