Это возможно.В этом коде я предполагаю, что ваше имя класса ячейки: CustomCollectionViewCell
и оно находится в CustomCollectionViewCell.xib
файлах:
let bundle = Bundle(for:CustomCollectionViewCell.self)
let nib = UINib(nibName: "CustomCollectionViewCell", bundle: bundle)
//nibName should be the same as your file name
let cell = nib.instantiate(withOwner: nil, options: nil).first as? CustomCollectionViewCell