--

No IBOutlets initialized. I had to assign them manually at the end of xibSetup taking them from the view which got loaded from the Nib, like so:

func xibSetup() {

guard let view = loadViewFromNib() else { return }

view.frame = bounds

view.autoresizingMask =

[.flexibleWidth, .flexibleHeight]

addSubview(view)

contentView = view

topLabel = contentView?.topLabel

imageView = contentView?.imageView

}

--

--

Summarized.biz - Top business book summaries
Summarized.biz - Top business book summaries

Written by Summarized.biz - Top business book summaries

Follow for summaries of top-selling business books or visit Summarized.biz for thousands more.

No responses yet