draveness / NightNight

Elegant way to integrate night mode to swift projects
MIT License
774 stars 56 forks source link

NNForegroundColorAttributeName does not react to mode change #22

Open menicor opened 7 years ago

menicor commented 7 years ago

let attributedString = NSMutableAttributedString(string: "NightNight") attributedString.setMixedAttributes( [NNForegroundColorAttributeName: MixedColor.init(normal: UIColor.green, night: UIColor.red)], range: NSRange(location: 0, length: 5) ) label.attributedText = attributedString