Post

Replies

Boosts

Views

Activity

Reply to XCode 13 issue - Thread 1: EXC_BAD_ACCESS (code=1, address=0x10)
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
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to XCode 13 issue - Thread 1: EXC_BAD_ACCESS (code=1, address=0x10)
Thanks for try to help. Issue resolved. For some reasons content was placed in cell.contentView with some incorrect constraints and contentView had zero size. And this time(xc13) contentView was just terminated in runtime with all view in a some moment while it's on screen. Corrected constraints fixed issue.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to XCode 13 issue - Thread 1: EXC_BAD_ACCESS (code=1, address=0x10)
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
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21