I am trying to add header to collectionView using custom xib file. I created the xib file with class implementing UICollectionReusableView
collectionView
xib
UICollectionReusableView
Did you set File' Owner setting in your xib File? Change file owner to your View controller hosting collectionView.