Label isn't nil.
"all variable are alive, views have superviews, windows, etc."
We have complicated UI with some kind of private framework which used in 3 big apps a long time.
I'll try show what i can show, but i think it's kind of XC bug.
titleLbl - is a part of custom UIView which is placed into UICollectionView.
// Custom view part
private var titleLbl: SF.UI.Elements.Label = {
let style = SF.UI.Elements.Label.Style.Default.SF__TwoLine
let view = SF.UI.Elements.Label(style: style)
view.backgroundColor = .clear
view.minimumScaleFactor = 0.2
view.adjustsFontSizeToFitWidth = true
return view
}()
init() {
...
configure()
...
}
override func configure() {
super.configure()
....
addSubview(titleLbl)
....
}
// cell part
private lazy var storeView: SS_KickGift__StoreView = {
let style = SF.UI.Elements.View.Style.Default.SF__Base
let view = SS_KickGift__StoreView(style: style)
view.clipsToBounds = true
return view
}()
override func configure() {
super.configure()
...
addSubview(storeView)
...
}
override init(frame: CGRect) {
super.init(frame: frame)
...
configure()
...
}
init(style: SF_UI_Elements_TableCell__Style_Protocol, reuseIdentifier: String?) {
super.init(frame: .zero)
...
configure()
...
}
code-block