Open ruixingchen opened 3 years ago
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
add _image = drawImage; to line 304, ASImageNode.mm. will fix.
_image = drawImage;
I just use ASButtonNode as a normal view, add it to a view directly
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