Consider the following simple view controller:
class ViewController: UIViewController, UITableViewDataSource { @IBOutlet weak var tableView: UITableView!
Register your nib like this:
let bundle = Bundle(for: type(of: self)) let nib = UINib(nibName: "PickerCell", bundle: bundle) collectionViewPicker.register(nib, forCellWithReuseIdentifier: "cell")