Not checked in the app.
text color set on IB is not shown in dark mode. I set UILabel.textColor in code.
When running the code like the below, the text color of UILabel in myView
is not RED.
But lazyMyView
is RED.
class MyView: UIView {
@IBOutlet weak var label: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
label.textColor = .red
}
}
class SomeViewOrVController {
let myView = MyView.loadFromXib()
lazy var lazyMyView = MyView.loadFromXib()
}