Open vandana26V opened 6 years ago
Looks like if CollectionViewContentNode
will be initialized with public init(withCustomViews customViews: [UIView], andNumberOfRows rows:CGFloat, bubbleConfiguration: BubbleConfigurationProtocol? = nil)
method, collectionNodesDataSource
is nil
and in open func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets
we use force unwrapping for this variable, and that's why we have the crash.
So what is the solution for this? Should I include collectionview datasource and delegate in my controller?
Below is the snippet of my code:
let customView = ConvView.init().instanceFromNib() as! ConversationalUITableViewCell let uiN: UINib = UINib(nibName: self.cellReuseIdentifier, bundle: nil) customView.tableView?.register(uiN, forCellReuseIdentifier: self.cellReuseIdentifier)