Failed to render instance of IB Designables

前端 未结 15 685
情深已故
情深已故 2020-12-07 12:09

I have an Objective-C and Swift mixed dynamic framework. And the mixed framework was linked with two pure Objective-C dynamic frameworks.

When I tried to mark any cl

15条回答
  •  情歌与酒
    2020-12-07 12:34

    I had a similar error which was caused by my Framework's views not having public initialisers:

    public override init(frame: CGRect) {
        super.init(frame:frame)
        commonInit()
    }
    
    required public init(coder: NSCoder) {
        super.init(coder: coder)
        commonInit()
    }
    

提交回复
热议问题