TextureGroup / Texture

Smooth asynchronous user interfaces for iOS apps.
https://texturegroup.org/
Other
8.02k stars 1.29k forks source link

ASButtonNode only follow dark mode once, then not working #1975

Open ruixingchen opened 3 years ago

ruixingchen commented 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

tengshuq commented 3 years ago

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