TextureGroup / Texture

Smooth asynchronous user interfaces for iOS apps.

Home Page:https://texturegroup.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

commented

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
})