Closed commando24 closed 7 years ago
I found a solution for this situation.
extension UIView {
open override func awakeFromNib() {
super.awakeFromNib()
if let normalBackgroundColor = self.normalBackgroundColor, let nightBackgroundColor = self.nightBackgroundColor {
self.mixedBackgroundColor = MixedColor(normal: normalBackgroundColor, night: nightBackgroundColor)
}
}
}
anyone have other solution ?
not supported storyboard yet and probably not support neither in the future
I am setting night background and normal background color in storyboard but its not working. I tried to print property mixedBackgroundColor of view but it shows nil.