Dark Mode not working with Texture
abbasnaqvi200 opened this issue · comments
UIApplication.shared.windows.forEach { window in
window.overrideUserInterfaceStyle = UIUserInterfaceStyle.currentMode
}
This code working for UIKit fine but when i go to Texture Classes like ASViewController/ASDisplayNode it stopped working
If i toggle mode using system setting then it works fina
how abut using?:
UIColor(dynamicProvider: { (trait) -> UIColor in
return trait.userInterfaceStyle == .dark ? UIColor(red: 0.35, green: 0.35, blue: 0.35, alpha: 1.00) : .white
})