Q:

Crash looking for a custom view

I created a UIView called FollowUp
I created an .xib file and attached it to this class
In the FollowUp class I implemented the start methods
In my storyboard I added a view and defined it as an extension of a FollowUp

Now when I try to run the app to display the view the app breaks as in the images:

This is my start code.:
import UIKit

class FollowUp: UIView {
    @IBOutlet var contentView: UIView!

    override init(frame: CGRect){
        super.init(frame: frame)
        commonInit()
    }

    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        commonInit()
    }

    func commonInit(){
        Bundle.main.loadNibNamed("FollowUp", owner: self, options: nil)
        addSubview(contentView)
        contentView.frame = self.bounds
        contentView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
    }
}

A:

In your first image, the custom class should be on the File's Owner, not the view.

