HGPlaceholders icon indicating copy to clipboard operation
HGPlaceholders copied to clipboard

collectionView as? CustomCollectionView == nil ????

Open tanjt223 opened this issue 6 years ago • 1 comments

hello everyone, why i print placeholderCollectionView is nil ? i use code to create the collectionview like:

class CustomCollectionView: CollectionView {
    override func customSetup() {
        placeholdersProvider = .custom
    }
}
class vc: UICollectionViewController {
   var placeholderCollectionView: CustomCollectionView? {
        return collectionView as? CustomCollectionView
    }
}

tanjt223 avatar Jun 21 '18 03:06 tanjt223

met the same problem!

shls77cxl avatar Nov 21 '22 03:11 shls77cxl